-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Make Embeddable not transient #8006
Conversation
27cf31f
to
58677c2
Compare
…8006 (#8036) * Add test case * Treat parent embeddables as mapped superclasses * [GH-8031] Bugfix: Get working again on nested embeddables in inherited embeddables. * Housekeeping: CS * Update note on limitations * [GH-8031] Verify assocations still do not work with Embeddables. * Housekeeping: CS Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>
hi. I believe that this change makes sense, but it broke JMS serializer (see schmittjoh/JMSSerializerBundle#790). How can we now distinguish if a class can be managed by the entity manager? |
@goetas I believe the question should be "How can we now distinguish if a class should be loaded from db?" and the answer would be then "Check if something is an embeddable through $metadata->isEmbeddedClass" :) |
ok :) thanks! |
…change doctrine#8006 (doctrine#8036)" This reverts commit a9b6b72.
I believe this was an oversight during original implementation but let's see what tests will tell us. Also this made PHPStan ignore Embeddables (phpstan/phpstan-doctrine#108 (review))