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