git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@15 97e9348a-65ac-dc4b-aefc-98561f571b83
39 lines
885 B
PHP
39 lines
885 B
PHP
<?php
|
|
class ChargeType extends AppModel {
|
|
|
|
var $name = 'ChargeType';
|
|
var $validate = array(
|
|
'id' => array('numeric'),
|
|
'name' => array('notempty'),
|
|
'account_id' => array('numeric')
|
|
);
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
/* var $belongsTo = array( */
|
|
/* 'Account' => array( */
|
|
/* 'className' => 'Account', */
|
|
/* 'foreignKey' => 'account_id', */
|
|
/* 'conditions' => '', */
|
|
/* 'fields' => '', */
|
|
/* 'order' => '' */
|
|
/* ) */
|
|
/* ); */
|
|
|
|
var $hasMany = array(
|
|
'Charge' => array(
|
|
'className' => 'Charge',
|
|
'foreignKey' => 'charge_type_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
)
|
|
);
|
|
|
|
}
|
|
?>
|