You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a couple of issues when upgrading to 3.x. Can anybody clarify if there is a workaround to the following, which worked in 2.x and now do not appear to be functional in 3.x.
ISSUE 1 - access to entity properties
Accessing a private property seems to have stopped working. The ID is the primary key from the database, so required the @myEntity1 to have been persisted before the ID will return a non-null value
value: '@myEntity1->id'
I have tried custom ordering of the entities to ensure this statement comes after the one that defines @myentity, but this appears to make no difference. Is this due to the removal of the persistence layer?
ISSUE 2 - combining a function with a reference
In 3.x the following appears to have stopped working
Accessing a private property seems to have stopped working
Will this be able to access the ID generated as the primary key when the entity is persisted? Or do I need to try and set the ID in the fixture and then use one of the Custom Accessor methods to set it?
Sorry for the late reply I didn't see your question. Doctrine is able to access to the ID as usual (it's a doctrine thing, not alice). You can also manually set the ID but then you should set it for all the fixtures of that class (this is only possible by manipulating the Doctrine class metadata, which is configurable for the whole class only, not specific instances).
Note however that accessing an auto-generated ID in the fixtures directly is not possible since all the fixtures are persisted together at the same time.
I've encountered a couple of issues when upgrading to 3.x. Can anybody clarify if there is a workaround to the following, which worked in 2.x and now do not appear to be functional in 3.x.
ISSUE 1 - access to entity properties
Accessing a private property seems to have stopped working. The ID is the primary key from the database, so required the @myEntity1 to have been persisted before the ID will return a non-null value
value: '@myEntity1->id'
I have tried custom ordering of the entities to ensure this statement comes after the one that defines @myentity, but this appears to make no difference. Is this due to the removal of the persistence layer?
ISSUE 2 - combining a function with a reference
In 3.x the following appears to have stopped working
I have had to replace
@bookingStatus<numberBetween(1, 7)>
with simply@bookingStatus5
but this won't give me the random spread I'm looking for.Thanks
The text was updated successfully, but these errors were encountered: