I can\'t get the onDelete to work in Doctrine2 (with YAML Mapping).
I tried this relation in my Product class:
Product
oneToOne: category:
OK, got it! I had to use onDelete inside joinColumn:
onDelete
joinColumn
oneToOne: category: targetEntity: Category joinColumn: onDelete: CASCADE