git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@217 97e9348a-65ac-dc4b-aefc-98561f571b83
25 lines
526 B
PHP
25 lines
526 B
PHP
<?php
|
|
class ContactsMethod extends AppModel {
|
|
var $primaryKey = false;
|
|
|
|
var $belongsTo = array(
|
|
'Contact',
|
|
'ContactAddress' => array(
|
|
'foreignKey' => 'method_id',
|
|
'conditions' => "method = 'ADDRESS'",
|
|
//'unique' => true,
|
|
),
|
|
'ContactPhone' => array(
|
|
'foreignKey' => 'method_id',
|
|
'conditions' => "method = 'PHONE'",
|
|
//'unique' => true,
|
|
),
|
|
'ContactEmail' => array(
|
|
'foreignKey' => 'method_id',
|
|
'conditions' => "method = 'EMAIL'",
|
|
//'unique' => true,
|
|
),
|
|
);
|
|
|
|
}
|
|
?>
|