@@ 421-423 (lines=3) @@ | ||
418 | ||
419 | $result = $this->collection->update($query, $update, $options); |
|
420 | ||
421 | if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) { |
|
422 | throw LockException::lockFailed($document); |
|
423 | } |
|
424 | } |
|
425 | ||
426 | $this->handleCollections($document, $options); |
|
@@ 446-448 (lines=3) @@ | ||
443 | ||
444 | $result = $this->collection->remove($query, $options); |
|
445 | ||
446 | if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) { |
|
447 | throw LockException::lockFailed($document); |
|
448 | } |
|
449 | } |
|
450 | ||
451 | /** |