Very, very early snapshot. Some models are working, and I have a controller for testing. Everything is subject to change. I _do_ have a working tenant ledger though, so it's worth a snapshot.
git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@15 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
39
models/charge_type.php
Normal file
39
models/charge_type.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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' => ''
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user