From 708910870c3775248636dbfc37f68d7b27282835 Mon Sep 17 00:00:00 2001 From: abijah Date: Tue, 16 Jun 2009 02:24:39 +0000 Subject: [PATCH] Removed what I believe to be unnecessary fields from the contacts model, since they should be determinable by convention. git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@143 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/models/contact.php | 6 ------ 1 file changed, 6 deletions(-) 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'",