public function remove(IEntity $entity, $withCascade = true);
/** @inheritdoc */ public function remove($entity, $withCascade = true) { $entity = $entity instanceof IEntity ? $entity : $this->getById($entity); $this->identityMap->check($entity); return $this->model->remove($entity, $withCascade); }