cmc-sales/php/app/models/purchase_order.php

59 lines
1.2 KiB
PHP
Raw Permalink Normal View History

<?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' => ''
),
'Currency' => array(
'className' => 'Currency',
'foreignKey' => 'currency_id'
),
);
2010-07-16 00:52:57 -07:00
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' => ''
)
2010-07-16 00:52:57 -07:00
);*/
}
?>