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

Fix for failing doctrine object constructor on embeddable class #1031

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

notrix
Copy link
Contributor

@notrix notrix commented Jan 14, 2019

Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets no
License MIT

Actual issue is on doctrine/persistence component. I have registered an issue to them https://github.com/doctrine/persistence/issues/37
The case is that doctrine is using XML metadata driver returns isTransient() === false on embeddable class and this class could not be found in database as it has no identifiers.
I have added one additional check to ensure that we have identifier and test that uses different entity manager with XML metadata driver.

@notrix notrix force-pushed the xml-embeddable-fix branch from 8fa83f4 to a074e27 Compare January 14, 2019 09:33
@goetas
Copy link
Collaborator

goetas commented Apr 21, 2019

Hi, sorry for the delay.
Thanks for your PR.
Can you please/fix the conflicts for this?

@goetas goetas added the bug label Apr 23, 2019
@goetas
Copy link
Collaborator

goetas commented Apr 23, 2019

Changes related to #1075

@notrix notrix force-pushed the xml-embeddable-fix branch 2 times, most recently from 8e588bb to 34acaff Compare April 24, 2019 06:05
@notrix notrix force-pushed the xml-embeddable-fix branch from 34acaff to 0999267 Compare April 24, 2019 06:10
@notrix
Copy link
Contributor Author

notrix commented Apr 24, 2019

@goetas I have resolved conflicts.

@goetas goetas merged commit f958936 into schmittjoh:master Apr 24, 2019
@goetas
Copy link
Collaborator

goetas commented Apr 24, 2019

Thank you!

@gnutix
Copy link

gnutix commented Apr 15, 2020

Shouldn't this be cherry-picked in the 1.x branch (if it's still supported - which seems to be the case as the last tag is 2 months old) ?

@goetas
Copy link
Collaborator

goetas commented Apr 18, 2020

Can you please send a pull request for that on the 1.x branch?

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

Successfully merging this pull request may close these issues.

3 participants