cmc-sales/models/principle.php

60 lines
1.5 KiB
PHP
Raw Normal View History

<?php
class Principle extends AppModel {
var $name = 'Principle';
2011-03-09 23:18:26 -08:00
var $recursive = 0;
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $belongsTo = array(
'Country' => array('className' => 'Country',
'foreignKey' => 'country_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
'Currency' => array('className' => 'Currency',
'foreignKey' => 'currency_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
var $hasMany = array(
'Enquiry' => array('className' => 'Enquiry',
'foreignKey' => 'principle_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
),
'Product' => array('className' => 'Product',
'foreignKey' => 'principle_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
),
'PrincipleAddress' => array('className' => 'PrincipleAddress',
'foreignKey' => 'principle_id'
),
2011-03-09 23:18:26 -08:00
'PrincipleContact' => array('className' => 'Users',
'foreignKey' => 'principle_id'
),
);
}
?>