Open Bilge opened 11 years ago
This doesn't work if class B
has a binary ID and $bar
is a discriminator reference. I'm not sure what the culprit is here, but the symptomns are that count(A::$whatever)
will never be > 1. That is, at most only one item is loaded into the collection on the field with an embedded document mapping.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.
Imagine thinking anyone cares about design flaws.
Imagine thinking anyone cares about Open Source being a joint effort.
Imagine thinking open source means other people work for you for free.
I'm not sure if this is officially supported by Doctrine, since it is not documented, but it works - with an error notice.
For example, if I have documents A and B where document B has an embedded document, E, I can design the mapping as follows:
However, reading A::$whatever generates the following notice:
Despite this, the document collection is retrieved correctly.