public function deleteUrls($entity) { if ($entity->getUrls()) { $this->deleteAllEntitiesOfCollection($entity->getUrls()); } }