isDirty() && $collection->getSnapshot()) { throw CannotUpdateReadOnlyCollection::fromEntityAndField( ClassUtils::getClass($collection->getOwner()), $this->association['fieldName'] ); } parent::update($collection); } }