<?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'
			),
		);

       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' => ''
		)
	);*/



}
?>
