mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
set "on update cascade" in xml do noting #5450
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhang122562 on GitHub (Mar 13, 2017).
Originally assigned to: @Ocramius on GitHub.
I set "ON UPDATE CASCADE" in the xml,but it dosen't wok!
The "ON DELETE SET NULL" work well.
I just follow the demo in the tutorial.
The following is my code in xml.
<many-to-one target-entity="User" field="engineer" inversed-by="assignedBugs"> <join-column name="engineer_id" referenced-column-name="id" on-delete="SET NULL" on- update="CASCADE"/> </many-to-one>@Ocramius commented on GitHub (Mar 13, 2017):
on-updateis no longer supported and will not be re-introduced in the future.