cmc-sales/models/purchase_order.php
2011-01-11 19:52:52 +11:00

54 lines
1.1 KiB
PHP
Executable file

<?php
class PurchaseOrder extends AppModel {
var $name = 'PurchaseOrder';
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $belongsTo = array(
'Principle' => array(
'className' => 'Principle',
'foreignKey' => 'principle_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
'Document' => array(
'className' => 'Document',
'foreignKey' => 'document_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
var $hasAndBelongsToMany = array(
'Job' => array(
'className' => 'Job',
'joinTable' => 'jobs_purchase_orders',
'unique' => true
)
);
/*var $hasMany = array(
'Shipment' => array(
'className' => 'Shipment',
'foreignKey' => 'purchase_order_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
)
);*/
}
?>