Added phone and address models as well as outputing them to the view.

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@16 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-28 06:31:07 +00:00
parent df846f9963
commit 28bf192853
5 changed files with 194 additions and 12 deletions

View File

@@ -25,6 +25,36 @@ class Contact extends AppModel {
'deleteQuery' => '',
'insertQuery' => ''
),
'ContactAddress' => array(
'className' => 'ContactAddress',
'joinTable' => 'contacts_methods',
'foreignKey' => 'contact_id',
'associationForeignKey' => 'method_id',
'unique' => true,
'conditions' => "ContactsMethod.method = 'POST'",
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
),
'ContactPhone' => array(
'className' => 'ContactPhone',
'joinTable' => 'contacts_methods',
'foreignKey' => 'contact_id',
'associationForeignKey' => 'method_id',
'unique' => true,
'conditions' => "ContactsMethod.method = 'PHONE'",
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
),
'ContactEmail' => array(
'className' => 'ContactEmail',
'joinTable' => 'contacts_methods',
@@ -39,7 +69,7 @@ class Contact extends AppModel {
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
),
);
}