Ray Kootstra Ray Kootstra - 8 months ago
282 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
{