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/site@143 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-16 02:24:39 +00:00
parent 57c73eafdb
commit 33b7d3d67d

View File

@@ -12,25 +12,19 @@ class Contact extends AppModel {
var $hasAndBelongsToMany = array( var $hasAndBelongsToMany = array(
'Customer', 'Customer',
'ContactAddress' => array( 'ContactAddress' => array(
'className' => 'ContactAddress',
'joinTable' => 'contacts_methods', 'joinTable' => 'contacts_methods',
'foreignKey' => 'contact_id',
'associationForeignKey' => 'method_id', 'associationForeignKey' => 'method_id',
'unique' => true, 'unique' => true,
'conditions' => "method = 'POST'", 'conditions' => "method = 'POST'",
), ),
'ContactPhone' => array( 'ContactPhone' => array(
'className' => 'ContactPhone',
'joinTable' => 'contacts_methods', 'joinTable' => 'contacts_methods',
'foreignKey' => 'contact_id',
'associationForeignKey' => 'method_id', 'associationForeignKey' => 'method_id',
'unique' => true, 'unique' => true,
'conditions' => "method = 'PHONE'", 'conditions' => "method = 'PHONE'",
), ),
'ContactEmail' => array( 'ContactEmail' => array(
'className' => 'ContactEmail',
'joinTable' => 'contacts_methods', 'joinTable' => 'contacts_methods',
'foreignKey' => 'contact_id',
'associationForeignKey' => 'method_id', 'associationForeignKey' => 'method_id',
'unique' => true, 'unique' => true,
'conditions' => "method = 'EMAIL'", 'conditions' => "method = 'EMAIL'",