public function delete(AdminPage $entity) { $this->om->remove($entity); $this->om->flush(); return $this; }