Skipping Validation on Date Fields

2009-02-11 Thread overture
I am having issues with validation on date fields. I need to ignore validation for a date field, however, I have tried everything and can't find a solution. I have changed the validation on the model to:- 'actual_start_date' => array( 'rule'=>'date', 'required' => false, 'allowEmpty' => t

Distant Association Issue

2009-01-16 Thread overture
I'm having real problems when performing finds in CakePHP. I can't seem to get my head around it. Here's my problem. Association Structure "users"--"users_pay_groups"--"pay_groups"--"event_deadlines" How do I get all event_deadlines for a given user and order by a field in event_deadlines ? I

Re: self referential many to many relationships

2008-12-19 Thread overture
I had looked at the manual already. Which bit covers 'self' referential relationships? On Dec 19, 1:46 pm, Smelly_Eddie wrote: > http://book.cakephp.org/view/78/Associations-Linking-Models-Together > > On Dec 18, 2:46 pm,overture wrote: > > > > > If I have

self referential many to many relationships

2008-12-18 Thread overture
If I have a 'users' table which represents a set of employees and I want to assign a given employee mutiple supervisora (who are obviously also in the 'users' table) then I have a situation where there is a self referential relationship. Not only that it is also many to many. How do I achieve th