Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current 1.8.x version breaks with orm 3.x. ID Generator no longer configured. #284

Open
jonnyeom opened this issue Jan 22, 2025 · 0 comments · May be fixed by #286
Open

Current 1.8.x version breaks with orm 3.x. ID Generator no longer configured. #284

jonnyeom opened this issue Jan 22, 2025 · 0 comments · May be fixed by #286

Comments

@jonnyeom
Copy link

I was having the issue of ID fields were not being saved correctly from fixtures.

Found the reason.

One of the changes in orm 3.x is ClassMetadataInfo + ClassMetadata classes are simplified to a single ClassMetadata class.

Currently we rely on the removed ClassMetadataInfo class to get to \Fidry\AliceDataFixtures\Bridge\Doctrine\Persister\ObjectManagerPersister::configureIdGenerator().

Proposed solution.

  1. Limit the 1.8.x version to 2.x versions of doctrine/orm
  2. Create a new 2.x branch for AliceDataFixtures to support 3.x branch of doctrine/orm

Any thoughts are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant