set "on update cascade" in xml do noting #5450

Closed
opened 2026-01-22 15:08:04 +01:00 by admin · 1 comment
Owner

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>

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>`
admin added the Won't FixInvalidQuestion labels 2026-01-22 15:08:04 +01:00
admin closed this issue 2026-01-22 15:08:05 +01:00
Author
Owner

@Ocramius commented on GitHub (Mar 13, 2017):

on-update is no longer supported and will not be re-introduced in the future.

@Ocramius commented on GitHub (Mar 13, 2017): `on-update` is no longer supported and will not be re-introduced in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5450