21 private $currentState =
null;
29 $this->currentState = $currentState;
32 if ($currentState ==
null) {
33 $msg =
'The object was deleted by another user.';
36 $msg =
'The object was modified by another user.';
38 parent::__construct($msg);
46 return $this->currentState;
OptimisticLockException signals an exception when trying to create an optimistic lock.
getCurrentState()
Get the current object.
__construct($currentState)
Constructor.