Hello,
I want to test if an object is deleted after a calling to my function executeDelete in order to send to the user an error if the object is still in my database.
if ($logement->isDeleted()) {
$this->getUser()->setFlash('notice', 'Suppression du logement effectuée');
}
else {
$this->getUser()->setFlash('error', 'Erreur lors de la suppression du logement');
}
But I have an error :
Unknown method Logement::isDeleted
I don't find how to use this method, and I think it's the problem I have.