|
@@ 409-411 (lines=3) @@
|
| 406 |
|
|
| 407 |
|
$result = $this->collection->update($query, $update, $options); |
| 408 |
|
|
| 409 |
|
if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) { |
| 410 |
|
throw LockException::lockFailed($document); |
| 411 |
|
} |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
$this->handleCollections($document, $options); |
|
@@ 435-437 (lines=3) @@
|
| 432 |
|
|
| 433 |
|
$result = $this->collection->remove($query, $options); |
| 434 |
|
|
| 435 |
|
if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) { |
| 436 |
|
throw LockException::lockFailed($document); |
| 437 |
|
} |
| 438 |
|
} |
| 439 |
|
|
| 440 |
|
/** |