laravel 4 - Doctrine 2 (Mitchell van Wijngaarden): Soft Deletes Still Show in Search Results -
laravel 4 - Doctrine 2 (Mitchell van Wijngaarden): Soft Deletes Still Show in Search Results -
i using mitchell van wijngaarden's doctrine solution (https://github.com/mitchellvanw/laravel-doctrine/wiki/soft-deleting) laravel 4.
i have set soft deleting still getting soft-deleted entities showing in search results. example, next query:
$group_instructions = $this->entitymanager->getrepository('groupinstruction')->findby(array('librarian'=>$user));
this query returns entities of groupinstruction class if "deleted_at" field has been filled timestamp. under impression soft deleted items hidden. has had experience this?
in order activate soft deletable, need enable entitymanager filters. not sure how done on laravel, on doctrine done this:
$em->getfilters()->enable('soft-deletable');
see more here: https://github.com/atlantic18/doctrineextensions/blob/master/doc/softdeleteable.md#setup-and-autoloading
laravel-4 doctrine2 soft-delete
Comments
Post a Comment