/** * @param IEntity * @param array id => id * @param array id => id {@see ManyToMany::$injectedValue} * @return array id => id will be set as {@see ManyToMany::$injectedValue} */ public function remove(IEntity $parent, array $ids, $injectedValue) { if ($this->meta->getWhereIsMapped() === RelationshipMetaDataToMany::MAPPED_THERE) { throw new NotSupportedException('Orm\\IManyToManyMapper::remove() has not supported on inverse side.'); } $parent->markAsChanged($this->meta->getParentParam()); $injectedValue = array_diff_key($injectedValue, $ids); return $injectedValue; }