Significant changes to work with the new account/ledger structure. Removed much of the auto-generated model association code. Added helper functions into the models to perform model related work, such as model 'stats' (a bad name for a function to return a summary of pertinent financial information from a given model instance). There is a ton of cleanup to do, but first I want to get it all captured.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@81 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -11,33 +11,12 @@ class Map extends AppModel {
|
||||
'depth' => array('numeric')
|
||||
);
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $belongsTo = array(
|
||||
'SiteArea' => array(
|
||||
'className' => 'SiteArea',
|
||||
'foreignKey' => 'site_area_id',
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => ''
|
||||
)
|
||||
'SiteArea',
|
||||
);
|
||||
|
||||
var $hasAndBelongsToMany = array(
|
||||
'Unit' => array(
|
||||
'className' => 'Unit',
|
||||
'joinTable' => 'maps_units',
|
||||
'foreignKey' => 'map_id',
|
||||
'associationForeignKey' => 'unit_id',
|
||||
'unique' => true,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'finderQuery' => '',
|
||||
'deleteQuery' => '',
|
||||
'insertQuery' => ''
|
||||
)
|
||||
'Unit',
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user