array('numeric'), 'postcode' => array('postal') ); var $hasAndBelongsToMany = array( 'Contact' => array( 'className' => 'Contact', 'joinTable' => 'contacts_methods', 'foreignKey' => 'method_id', 'associationForeignKey' => 'contact_id', 'unique' => true, 'conditions' => "method = 'POST'", ) ); } ?>