Skip to content

Commit

Permalink
Worth mentioning that its possible to undelete an entity
Browse files Browse the repository at this point in the history
  • Loading branch information
robinvdvleuten committed Apr 25, 2014
1 parent 47ed3e4 commit a35a92d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/softdeleteable.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ $this->assertTrue(is_object($art));
$filter = $em->getFilters()->enable('soft-deleteable');
$filter->disableForEntity('Entity\Article');
$filter->enableForEntity('Entity\Article');

// Undelete the entity by setting the deletedAt field to null
$article->setDeletedAt(null);
```

Easy like that, any suggestions on improvements are very welcome.

0 comments on commit a35a92d

Please sign in to comment.