array('numeric'), //'type' => array('inlist'), 'phone' => array('phone'), 'ext' => array('numeric') ); var $hasAndBelongsToMany = array( 'Contact' => array( 'className' => 'Contact', 'joinTable' => 'contacts_methods', 'foreignKey' => 'method_id', 'associationForeignKey' => 'contact_id', 'unique' => true, 'conditions' => "method = 'PHONE'", ) ); } ?>