[DDC-2550] Inverse side of x-to-one can never be lazy Created: 11/Jul/13  Updated: 11/Jul/13  Resolved: 11/Jul/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: Mapping Drivers, ORM
Affects Version/s: 2.3.4
Fix Version/s: None
Security Level: All

Type: Bug Priority: Minor
Reporter: Filip Procházka Assignee: Marco Pivetta
Resolution: Duplicate Votes: 0
Labels: None


Here is a note that "Inverse side of x-to-one can never be lazy"


I don't understand, why there cannot be a proxy. But ok, let's say that for some internal implementation reason there canno be a proxy yet. That means there should be at least an exception raised, when validating schema, telling me this crucial information.

Doing a select over 500 entities would result in 501 queries just because I didn't know about this.
If the validator would tell me, I'd join the entity and had 1 query executed.

Resoltion: you shouldn't allow me to define the association as lazy, or use proxies.

Thank you.

Comment by Marco Pivetta [ 11/Jul/13 ]

Duplicate of DDC-357

Generated at Thu Jul 30 04:17:13 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.