This package is currently under development, more documentation and features will come soon.
use php composer.phar instead of composer on Windows
composer require SKCMS/trashbin-bundle:dev-master
use annotation:
use SKCMS\TrashBinBundle\Annotation\TrashBinable as TrashBinable;
/**
* @ORM\Table()
* @ORM\Entity
* @TrashBinable
*/
class MyEntity{
//...
That's all. The reverse method exist but not yet implemented.
An interface to see trashbinned entities and restore it has to be done quickly.