Changeset 5311
- Timestamp:
- 12/18/08 02:09:37 (7 months ago)
- Files:
-
- 1 modified
-
branches/1.1/lib/Doctrine/Record.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/lib/Doctrine/Record.php
r5301 r5311 326 326 return true; 327 327 } 328 329 if ($this->_state == self::STATE_LOCKED || $this->_state == self::STATE_TLOCKED) { 330 return true; 331 } 332 328 333 // Clear the stack from any previous errors. 329 334 $this->getErrorStack()->clear(); … … 351 356 $valid = $this->getErrorStack()->count() == 0 ? true : false; 352 357 if ($valid) { 358 $stateBeforeLock = $this->_state; 359 $this->_state = $this->exists() ? self::STATE_LOCKED : self::STATE_TLOCKED; 360 353 361 foreach ($this->_references as $reference) { 354 362 if ($reference instanceof Doctrine_Record) { … … 364 372 } 365 373 } 366 } 374 $this->_state = $stateBeforeLock; 375 } 376 367 377 return $valid; 368 378 }