[symfony-users] Re: Custom error page for Integrity constraint violation

2010-03-29 Thread skr
On 29 Mrz., 14:01, bretth brett...@gmail.com wrote: Hi, I'm getting the error SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails when I delete a parent row from my admin generator. That's fine; it's doing what it

[symfony-users] Re: how can I use peer_method with n-n table relationships in admin gen...

2007-04-04 Thread skr
You can override doSelect in your peer class: public static function doSelect(Criteria $criteria, $con = null) { // by default order by name /// getOrderByColumns() if(count($criteria-getOrderByColumns()) == 0) {