Open ScreamingDev opened 7 years ago
Not sure if that occurs everywhere, but FYI you should use custom types rather than embedded classes for your custom IDs.
The customer id is probably a class that extends a UUID with a private ID,
right? If that's what is mapped, then the ID property doesn't exist in the
child CustomerId
class (that's normal, since it's not visible). Doctrine
has no way to have you inherit properties from parent embeddable classes,
so you will either need to move the field to CustomerId
or make it
protected
.
On 26 Mar 2017 9:16 a.m., "Théo FIDRY" notifications@github.com wrote:
Not sure if that occurs everywhere, but FYI you should use custom types rather than embedded classes for your custom IDs.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/doctrine/doctrine2/issues/6360#issuecomment-289287317, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJakGTBFh1RWED3AtVVbS6PJYSXzyg5ks5rpnNJgaJpZM4MpZT6 .
@ScreamingDev given feedback from other users, did you solve the issue? Can we close?
Hi there. I have an embeded entity like this:
and
but the
CustomerId
extends another class:So every property is defined there. Why does Doctrine/PHP keeps telling me this?
There is something odd with it as you see here:
What else do you need from me? Seems like I can't work with embeded in my setup. Only works when I remove them.
See my versions here: