git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@16 97e9348a-65ac-dc4b-aefc-98561f571b83
28 lines
625 B
PHP
28 lines
625 B
PHP
<?php
|
|
class ContactAddress extends AppModel {
|
|
|
|
var $name = 'ContactAddress';
|
|
var $validate = array(
|
|
'id' => array('numeric'),
|
|
'postcode' => array('postal')
|
|
);
|
|
|
|
var $hasAndBelongsToMany = array(
|
|
'Contact' => array(
|
|
'className' => 'Contact',
|
|
'joinTable' => 'contacts_methods',
|
|
'foreignKey' => 'method_id',
|
|
'associationForeignKey' => 'contact_id',
|
|
'unique' => true,
|
|
'conditions' => "ContactsMethod.method = 'POST'",
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'finderQuery' => '',
|
|
'deleteQuery' => '',
|
|
'insertQuery' => ''
|
|
)
|
|
);
|
|
}
|
|
?>
|