<?php
class Email extends AppModel {

    var $name = 'Email';

    var $belongsTo = array(
            'Enquiry' => array('className' => 'Enquiry',
                            'foreignKey' => 'enquiry_id',
                            'counterCache' => true));

    var $hasMany = array(
            'EmailAttachment' => array('className' => 'EmailAttachment',
                            'foreignKey' => 'email_id',
                            'dependent' => false
    ));

}
?>
