Doctrine 1
  1. Doctrine 1
  2. DC-185

The pessimistic offline locking manager locks the entire table

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.4, 1.1.5, 1.2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP, WampServer Version 2.0

      Description

      Scenario:
      $entity = Doctrine::getTable('Steps')->find($pID);
      $lockingManager = new Doctrine_Locking_Manager_Pessimistic( Doctrine_Manager::connection() );
      $lockingManager->releaseAgedLocks(300);
      $gotLock = $lockingManager->getLock($entity, 'user1' );

      Running this code locks the entire table "Steps", and not just the record.

      in the table "doctrine_lock_tracking", in the fields: "object_type" and "object_key" are saved in this case: "Steps" and "IDStep".
      I think that here must be saved "Steps" and "120" (the value of IDStep).

      1. DC185TestCase.php
        2 kB
        Fabian Brussa
      2. row_based_locking.patch
        3 kB
        Florian Zumkeller-Quast

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Fabian Brussa
          • Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated: