After parent is soft deleted child cascade deleting rather than set null.
I have parent class:
`
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/*
- @Orm\Entity(repositoryClass="AppBundle\Entity\PaymentRepository")
- @gedmo\SoftDeleteable(fieldName="deletedAt")
*/
class Payment
{
...
}
`
and the child with SET NULL method by Evence:
`
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Evence\Bundle\SoftDeleteableExtensionBundle\Mapping\Annotation as Evence;
/*
`
After parent is soft deleted child cascade deleting rather than set null.
I have parent class:
`
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/*
*/
class Payment
{
...
}
`
and the child with SET NULL method by Evence:
`
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Evence\Bundle\SoftDeleteableExtensionBundle\Mapping\Annotation as Evence;
/*
@Orm\Entity(repositoryClass="AppBundle\Entity\TransactionRepository")
*/
class Transaction
{
...
/**
*/
private $payment = null;
...
}
`