Added a primary contact for each customer, as there must be someone (or some entity) to contact for every customer. This simply makes it explicit, and has the added benefit of being easier to work with when querying.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@104 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-13 04:19:19 +00:00
parent 2f91dd456a
commit 55dd94681a
3 changed files with 23 additions and 2 deletions

View File

@@ -9,6 +9,9 @@ class Customer extends AppModel {
var $belongsTo = array(
'Account',
'PrimaryContact' => array(
'className' => 'Contact',
),
);
var $hasMany = array(