Changeset 4704 for branches/1.0/lib/Doctrine/Connection/UnitOfWork.php
- Timestamp:
- 07/23/08 21:19:40 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Connection/UnitOfWork.php
r4487 r4704 52 52 53 53 $state = $record->state(); 54 if ($state === Doctrine_Record::STATE_LOCKED ) {54 if ($state === Doctrine_Record::STATE_LOCKED || $state === Doctrine_Record::STATE_TLOCKED) { 55 55 return false; 56 56 } 57 57 58 $record->state( Doctrine_Record::STATE_LOCKED);58 $record->state($record->exists() ? Doctrine_Record::STATE_LOCKED : Doctrine_Record::STATE_TLOCKED); 59 59 60 60 $conn->beginInternalTransaction(); … … 97 97 $state = $record->state(); 98 98 99 $record->state( Doctrine_Record::STATE_LOCKED);99 $record->state($record->exists() ? Doctrine_Record::STATE_LOCKED : Doctrine_Record::STATE_TLOCKED); 100 100 101 101 foreach ($saveLater as $fk) {