41 lines
841 B
PHP
41 lines
841 B
PHP
|
|
<?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 $hasMany = array(
|
||
|
|
'Shipment' => array(
|
||
|
|
'className' => 'Shipment',
|
||
|
|
'foreignKey' => 'purchase_order_id',
|
||
|
|
'dependent' => false,
|
||
|
|
'conditions' => '',
|
||
|
|
'fields' => '',
|
||
|
|
'order' => '',
|
||
|
|
'limit' => '',
|
||
|
|
'offset' => '',
|
||
|
|
'exclusive' => '',
|
||
|
|
'finderQuery' => '',
|
||
|
|
'counterQuery' => ''
|
||
|
|
)
|
||
|
|
);
|
||
|
|
|
||
|
|
}
|
||
|
|
?>
|