Added the Containable behavior back into the AppModel, since it's obviously getting used in every controller.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@91 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-10 21:09:23 +00:00
parent ef3b5f3022
commit ce735cad3f
9 changed files with 67 additions and 76 deletions

View File

@@ -118,7 +118,6 @@ class LedgersController extends AppController {
}
// Get details about the ledger itself (no entries yet)
$this->Ledger->Behaviors->attach('Containable');
$ledger = $this->Ledger->find
('first',
array('contain' =>
@@ -128,7 +127,6 @@ class LedgersController extends AppController {
'conditions' => array(array('Ledger.id' => $id)),
)
);
$this->Ledger->Behaviors->detach('Containable');
// Get all ledger entries of this ledger
$ledger['LedgerEntry'] = $this->Ledger->findLedgerEntries