/** * Deletes an entity from the repo * * @param object $entity The entity to delete * * @return void * * @throws OrmException if the entity could not be deleted */ public function remove($entity) { $this->unitOfWork->scheduleForDeletion($entity); }