Changeset 5146
- Timestamp:
- 09/16/07 17:03:49 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelOptimisticLockBehaviorPlugin/lib/sfPropelOptimisticLockBehavior.class.php
r2514 r5146 50 50 // new lock version 51 51 $setMethod = 'set'.$phpName; 52 $object->$setMethod( $previousValue + 1);52 $object->$setMethod(($previousValue + 1) % 128); 53 53 54 54 $criteria = $object->buildCriteria(); … … 68 68 if (!$ret = BasePeer::doUpdate($selectCriteria, $criteria, $con)) 69 69 { 70 throw new PropelException('Cannot update a stale object');70 throw new sfStalePropelObjectException('Cannot update a stale object'); 71 71 } 72 72