Skip to content

Commit

Permalink
Merge pull request doctrine-extensions#1051 from RobinvdVleuten/master
Browse files Browse the repository at this point in the history
Worth mentioning that its possible to undelete an entity
  • Loading branch information
stof committed Aug 21, 2014
2 parents f8a5be9 + a35a92d commit 54af483
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 54af483

Please sign in to comment.