Installing and using SoftDeleteable behavior extension for Doctrine 2 is quite easy. The problem usually is trying to disable it for some code part and enabling again. You may w
Just a small reminder.
When you want to hard delete entity with Gedmo Softdeletable you have to have hardDelete=true
in the respective annotation, see:
@Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
EDIT: hardDelete=true
is true by default
With this, you dont have to disable the listener/filter. If you have hardDelete=false
, the double remove suggested above will not work.
Source: