Ray Kootstra Ray Kootstra - 19 days ago
66 0

How to add a soft deleteable column to your entity with Gedmo

PHP

Symfony2 Doctrine2 Gedmo sofDeleteable

/**
 * @ORM\Entity
 * @ORM\Table(name="my_class")
 * @Gedmo\SoftDeleteable(fieldName="deleted_at")
 */
class MyClass
{