public function delete(EntityInterface $entity) { $msg = ['text' => "Carro {$entity->getModelo()} excluido com sucesso", 'type' => 'alert-danger']; $this->em->remove($entity); $this->em->flush(); return $msg; }
public function delete(EntityInterface $entity) { $msg = ['text' => "Carro {$entity->getModelo()} excluído com sucesso", 'type' => 'alert-danger']; $this->destroy($entity); return $msg; }