[FLOW3-general] Catch restricted delete operations
Steffen Wickham
steffen at gaming-inc.de
Wed Mar 7 13:54:57 CET 2012
Hello everybody,
I'm currently working on my referee tool as mentioned a long time ago. I
had many sleepless nights and some difficulties to solve but I learned
many new stuff since start working with FLOW3.
But now I've reached a point where I really need your help. The admin
user in my package can create, modify and delete every model/model
repository. But many models using references (OneToOne or OneToMany) to
other models e.g. a "team" model is referenced from a "match" model. If
the admin tries to delete a team which is still referenced by a match it
doesn't get deleted. That's the correct behavior and exactly what I
want. But after processing the delete method i got a flash message that
the team is successfully deleted.
Is there any way to catch a restricted delete operation so I can react
on it and give a proper flash message. For now I've just try to catch a
Exception but that is not the right way.
Many thanks in advance!
Greetings
Steffen
More information about the FLOW3-general
mailing list