array('date'), 'due_date' => array('date'), 'title' => array('notempty'), 'paid' => array('numeric'), 'enquiry_id' => array('numeric'), 'user_id' => array('numeric') ); //The Associations below have been created with all possible keys, those that are not needed can be removed var $belongsTo = array( 'Enquiry' => array( 'className' => 'Enquiry', 'foreignKey' => 'enquiry_id', 'conditions' => '', 'fields' => '', 'order' => '', 'counterCache'=>true ), 'User' => array( 'className' => 'User', 'foreignKey' => 'user_id', 'conditions' => '', 'fields' => '', 'order' => '' ), 'Customer' => array( 'className' => 'Customer', 'foreignKey' => 'customer_id' ), 'Job' => array( 'className' => 'Job', 'foreignKey' => 'job_id' ) ); } ?>