Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-20

CLONE -cache problem with joined tables and external data change

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0-ALPHA2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Doctrine doesn't invalidate cache properly. Queries like the one below has the second table taken from cache and it shouldn't.

      $comp = Doctrine_Query::create()
      			->select('a.*, s.*')
      			->from('AttachedComponents a, a.SubscriptionComponents s')
      			->fetchOne();
      

      In bug DC-24 the advice is to select id of second table, I selected all fields in second table but doctrine doesn't seem to notice foreign key has changed.

        Issue Links

          Activity

          Hide
          Roman S. Borschel added a comment -

          After some researh this is desired behavior. However, parts of a consistent implementation of this behavior are still incomplete as described in DDC-21 and DDC-22.

          Show
          Roman S. Borschel added a comment - After some researh this is desired behavior. However, parts of a consistent implementation of this behavior are still incomplete as described in DDC-21 and DDC-22 .

            People

            • Assignee:
              Roman S. Borschel
              Reporter:
              Ionut E
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: