Open cnizzardini opened 1 year ago
I have pushed the commit above to reproduce the issue, but unsuccessfully (see the pipe here).
Could you identify the difference between your setup and the ones in the package's test suite?
@pabloelcolombiano I am curious if you attempted reproducing this in an actual application? I also updated the issue with more code to reproduce the issue.
In CakePHP 4.2 and Fixture Factory 2.4. I am fairly certain you can reproduce this when using
persist()
to get the entity as well.Steps to reproduce
FooFactory:
Expected Result
$foo->getOriginal('test')
outputsNULL
More Context
This bug is not present with the following setup in the
FooFactory
class:With this the following code works as expected:
I hope this is clear.