diff --git a/site/models/contact.php b/site/models/contact.php index d4e18d5..ee54881 100644 --- a/site/models/contact.php +++ b/site/models/contact.php @@ -12,25 +12,19 @@ class Contact extends AppModel { var $hasAndBelongsToMany = array( 'Customer', 'ContactAddress' => array( - 'className' => 'ContactAddress', 'joinTable' => 'contacts_methods', - 'foreignKey' => 'contact_id', 'associationForeignKey' => 'method_id', 'unique' => true, 'conditions' => "method = 'POST'", ), 'ContactPhone' => array( - 'className' => 'ContactPhone', 'joinTable' => 'contacts_methods', - 'foreignKey' => 'contact_id', 'associationForeignKey' => 'method_id', 'unique' => true, 'conditions' => "method = 'PHONE'", ), 'ContactEmail' => array( - 'className' => 'ContactEmail', 'joinTable' => 'contacts_methods', - 'foreignKey' => 'contact_id', 'associationForeignKey' => 'method_id', 'unique' => true, 'conditions' => "method = 'EMAIL'",