-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDC-392: OneToMany cascade delete and InheritanceType("JOINED") table #4778
Comments
Comment created by @beberlei: Just as a note, using 21 subclsses with Joined Inheritence is NOT encouraged. You will get massive performance problems down the road and judging from the base class you don't need them anyways since you could solve the problem using strategy pattern. Can you try just deleting an inventory basic instance? Does it give the same error? |
Comment created by @beberlei: Oh please show us the delete query sql, this could help |
Comment created by freeakk: Now I get other error when run $em->remove($shellyHost);
SQL:
My code:
Without error: when delete InventorySystem object:
Also, no error when only create nodes
|
Comment created by freeakk: Create schema log |
Comment created by freeakk: Also I get this error in phpMyAdmin. This error with db schema and keys. Ответ MySQL: Документация |
Comment created by freeakk:
I need to add this key, but I don't know how.
I think cascade definition don't work with mySQL. |
Comment created by freeakk: This is problem with mysql, which requires onDelete="SOME ACTION" and onUpdate="SOME ACTION". Also there are bug with these definitions |
Issue was closed with resolution "Incomplete" |
Imported 3 attachments from Jira into https://gist.github.com/7ed0ea4aa1ce416ca5d7 |
Jira issue originally created by user freeakk:
when delete shellyHost row
The text was updated successfully, but these errors were encountered: