I can\'t get the onDelete to work in Doctrine2 (with YAML Mapping).
I tried this relation in my Product
class:
oneToOne:
category:
This is the way to use onDelete
in joinTable
:
manyToMany:
parameters:
targetEntity: Fox\LandingBundle\Entity\Parameter
cascade: ["persist","remove"]
joinTable:
name: subscriberBox_parameter
joinColumns:
subscriberBox_id:
referencedColumnName: id
inverseJoinColumns:
parameter_id:
referencedColumnName: id
onDelete: CASCADE