Cannot load fixtures with entity references using AliceBundle after Doctrine ORM 2.16+ #11918
Unanswered
Cyanat
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm using
Hautelook\AliceBundle
to load my fixtures. Currently, withdoctrine/orm 2.9.6
, here's an example of how my fixtures look:category.yml:
channel.yml:
<category(news)>
refers to a data fixture provider in my app that returns the entity reference.This setup allows me to:
channel.yml
on an instance where categories are already stored — also works fine.However, after upgrading to
doctrine/orm 2.20.2
(the issue seems to appear starting from 2.16.0, after ticket #10785), trying to load all fixtures (Case 1) now results in the following error:I've worked around the issue by updating the
channel.yml
fixture like this:This solves the problem when loading everything at once.
But it breaks my ability to load only
channel.yml
(Case 2).So this upgrade introduces a regression in my use case.
Is my previous usage incorrect?
Or is there a recommended practice that would allow me to continue loading fixtures in both scenarios?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions