Closed peterrehm closed 8 years ago
It looks like this might be due to a self referencing entity.
Indeed it happens for me on a self referencing ManyToOne in my case.
Just provided a PR, let's see if this is the solution already.
I hope it gets merged soon, same issue on our end.
I have the same problem, can't start my fixtures :(
Anyone have a solution ?
@Xen3r0 Use version 1.1.1 for now, it's what I did.
Same problem here. Cannot load DataFixtures with entities that reference them self. Removing those entities solves the problem, but it's not a good solution, because many data is not loaded while recreating database... I have a Category entity who implements tree functionality based on @Gedmo\TreeParent. So, the Category contains reference to itself and... that's the problem.
Using version 1.1.1 solves the problem too, but it's temporarily solution.
Same issue here with Gedmo\Tree 👍
Can you try if my fix resolves it for your use cases?
Please, folks, come up with test cases and sample scenarios that we can put in the test suite. We know that the new TopologicalSorter
is not 100% reflecting what was in ORM 2.5, but we can't do much about it without actual tests that cover the solved problems.
@Ocramius In my case the fixtures load correctly but if I reload them, the DELETE FROM <table>
statements break everything (after upgrading from 1.1 to 1.2). I could provide the schema and alice fixtures but it's quite big.
@geoffrey-brier Your issue might not be solved with the merged PR. Please check this again and open an issue if it still exists.
The TopologicalSorter throws the error:
Everything was working before. As the error is not providing much information I will investigate further.