2009-02-09 14:25:49 -08:00
|
|
|
<?php
|
|
|
|
|
class Email extends AppModel {
|
|
|
|
|
|
2010-03-22 16:03:03 -07:00
|
|
|
var $name = 'Email';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var $hasMany = array(
|
2010-12-27 17:51:39 -08:00
|
|
|
'EmailAttachment' => array('className' => 'EmailAttachment',
|
|
|
|
|
'foreignKey' => 'email_id',
|
|
|
|
|
'dependent' => false)
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
var $hasAndBelongsToMany = array (
|
|
|
|
|
'Enquiry' => array('className' => 'Enquiry',
|
|
|
|
|
'joinTable' => 'emails_enquiries'
|
|
|
|
|
),
|
|
|
|
|
'Invoice' => array('className' => 'Invoice',
|
|
|
|
|
'joinTable' => 'emails_invoices'
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
'PurchaseOrder' => array('className' => 'PurchaseOrder',
|
|
|
|
|
'joinTable' => 'emails_purchase_orders'
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
);
|
2010-03-22 16:03:03 -07:00
|
|
|
|
|
|
|
|
}
|
2009-02-09 14:25:49 -08:00
|
|
|
?>
|