Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2490

EAGER associations are sometimes fetched through a Proxy non-eagerly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      In the UOW deferred eager load only works for single identifier classes. But the implementation of deferred eager load uses a Proxy which lazy loads. A boolean condition must be added to only use this deferred approach for non-EAGER relationships.

        Activity

        Hide
        Tom Anderson added a comment -

        This was caused because I was changing entities in postLoad based on == $entityClass vs instanceOf $entityClass so Proxies were not being processed in my function.

        Show
        Tom Anderson added a comment - This was caused because I was changing entities in postLoad based on == $entityClass vs instanceOf $entityClass so Proxies were not being processed in my function.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Tom Anderson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: