Skip to content
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

Avoid impossible delete actions #11

Closed
Guite opened this issue Jul 15, 2011 · 1 comment
Closed

Avoid impossible delete actions #11

Guite opened this issue Jul 15, 2011 · 1 comment
Assignees
Milestone

Comments

@Guite
Copy link
Owner

Guite commented Jul 15, 2011

Database constraints ensure integrity of stored data. Because of that it is not possible to delete a parent object if it has still children. Therefore according delete actions will fail.

Possible solution:

Notes:

  • This function does not make sense in all use cases. It must consider the different cascade types.
  • Code template available in a project where this has been implemented as a isDelete() entity method. Generator integration should wait until Migrate to Doctrine 2.1 #21 is done though.
@Guite
Copy link
Owner Author

Guite commented Apr 28, 2017

This will be done for ZK 1.5+ only, because the new workflow system makes this much simpler to implement.

@Guite Guite added the zk 1.5.x label Apr 28, 2017
@Guite Guite closed this as completed in 4ae3dbe Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant