Files
pmgr/site/models/contact_email.php
2009-05-28 05:49:03 +00:00

30 lines
730 B
PHP

<?php
class ContactEmail extends AppModel {
var $name = 'ContactEmail';
var $validate = array(
'id' => array('numeric'),
'email' => array('email')
);
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $hasAndBelongsToMany = array(
'Contact' => array(
'className' => 'Contact',
'joinTable' => 'contacts_methods',
'foreignKey' => 'method_id',
'associationForeignKey' => 'contact_id',
'unique' => true,
'conditions' => "ContactsMethod.method = 'EMAIL'",
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
);
}
?>