Setting Primary Key (`id` field) with fixtures

Is there any way to explicitly set the id of an fixture entry? i
tried adding id: 1 to the attributes list in the .yml file, but it
seems to get ignored.

example .yml file:

default_user:
id: 1
name: Default User
otherfield: stuff

nextuser:
etc…

Hi Ivan,

Ivan Von Girderboot wrote:

Is there any way to explicitly set the id of an fixture entry? i
tried adding id: 1 to the attributes list in the .yml file, but it
seems to get ignored.

What do you mean ‘get ignored’? What happens that makes you think so?

Best regards,
Bill

Hey Ivan, could you provide the actual message that you’re seeing and
any
additional relevant details so that we can better assist you?
Thanks in advance,

-Conrad