|
@@ 402-404 (lines=3) @@
|
| 399 |
|
|
| 400 |
|
$result = $this->collection->update($query, $update, $options); |
| 401 |
|
|
| 402 |
|
if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) { |
| 403 |
|
throw LockException::lockFailed($document); |
| 404 |
|
} |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
$this->handleCollections($document, $options); |
|
@@ 428-430 (lines=3) @@
|
| 425 |
|
|
| 426 |
|
$result = $this->collection->remove($query, $options); |
| 427 |
|
|
| 428 |
|
if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) { |
| 429 |
|
throw LockException::lockFailed($document); |
| 430 |
|
} |
| 431 |
|
} |
| 432 |
|
|
| 433 |
|
/** |