Ray Kootstra Ray Kootstra - 6 months ago
250 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
{