2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
|
|
|
|
class Currency extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'Currency';
|
|
|
|
|
|
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
|
var $hasMany = array(
|
|
|
|
|
'Country' => array('className' => 'Country',
|
|
|
|
|
'foreignKey' => 'currency_id',
|
|
|
|
|
'dependent' => false,
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
|
|
|
|
'order' => '',
|
|
|
|
|
'limit' => '',
|
|
|
|
|
'offset' => '',
|
|
|
|
|
'exclusive' => '',
|
|
|
|
|
'finderQuery' => '',
|
|
|
|
|
'counterQuery' => ''
|
|
|
|
|
),
|
|
|
|
|
'Principle' => array('className' => 'Principle',
|
|
|
|
|
'foreignKey' => 'currency_id',
|
|
|
|
|
'dependent' => false,
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
|
|
|
|
'order' => '',
|
|
|
|
|
'limit' => '',
|
|
|
|
|
'offset' => '',
|
|
|
|
|
'exclusive' => '',
|
|
|
|
|
'finderQuery' => '',
|
|
|
|
|
'counterQuery' => ''
|
|
|
|
|
)
|
2010-02-04 08:30:49 -08:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
);
|
|
|
|
|
|
2011-04-15 00:34:51 -07:00
|
|
|
var $order = "Currency.name ASC";
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
}
|
|
|
|
|
?>
|