| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 23 | public function update(PersistentCollection $collection) |
|
| 22 | { |
||
| 23 | 23 | if ($collection->isDirty() && $collection->getSnapshot()) { |
|
| 24 | 1 | throw CacheException::updateReadOnlyCollection( |
|
| 25 | 1 | StaticClassNameConverter::getClass($collection->getOwner()), |
|
| 26 | 1 | $this->association->getName() |
|
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | 23 | parent::update($collection); |
|
| 31 | 23 | } |
|
| 33 |