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
Embeddable value object is loaded as NULL in 2.7.2 #8089
Comments
Right, failing test has been added in #8090. I noticed that the This may actually be an error on my end; I added the MappedSuperclass because of this comment but I simply could have misunderstood the recommendation. |
@vicdelfant just to make sure, did you update doctrine/reflection and doctrine/persistence to the latest versions too? |
Not specifically since they're pulled in by Failing (ORM 2.7.2)
Working (ORM 2.7.1)
|
It seems embeddables with inheritance are broken in more ways since 2.7.2. In the context of this issue: If you want me to open up a separate issue about this, just shout. |
We will revert all the embeddable changes for the next mini release |
BC Break Report
Summary
We extensively use custom types as value types, such as an
InvoiceCode
in anInvoice
entity (Invoice::$code
). In our case, theInvoiceCode
is an embeddable. For some reason, these properties are now left as anull
value upon loading such an entity from the database.Previous behavior
In
doctrine/orm:2.7.1
,Invoice::$code
is initialized properly.Current behavior
In
doctrine/orm:2.7.2
,Invoice::$code
is initialized asnull
. This makes me think that this may be related to #8031. The diff between 2.7.1 and 2.7.2 does show some changes that involve embeddables, too.How to reproduce
Upgrade to
2.7.2
and use the following entity and embeddable. The entity and embeddable are trimmed for readability but you get the gist:Entity
Embedded
Failing test is coming up (will try to squeeze it in today).
The text was updated successfully, but these errors were encountered: