mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
OnDelete={"REMOVE"}, Bug? #5155
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 @lukasz18dg on GitHub (Jun 15, 2016).
Originally assigned to: @Ocramius on GitHub.
Good day.
This is my first speech in this "forum", so I apologize in advance if I break any rules of procedure. I was looking for, I have not found.
I have about this problem:
This code works on a SQLite database:
The same for MySQL database does not work.
Symfony console, it only returns me this error:
"Invalid foreign key action: REMOVE"
Did I do something?
As you can see, the code earlier, I have a table Many to many on both sides can be accessed. How removal work, it removes the one hand and on the other hand, unfortunately unexplained reasons, is in Table 3, specially created for the lot of many. So I used onDelete = "REMOVE" to me was the part that was in relation to what was removed. But I do not want to act this for MYSQL.
@Ocramius commented on GitHub (Jun 15, 2016):
it's
onDelete="CASCADE"