Since adding the MODEL_ALIAS condition to LedgerEntry (which only works for the Linkable Behavior), the read() ails when it tries to link models together. Setting recursive to -1 solves the problem (or at least, the symptom).

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@283 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-09 06:08:31 +00:00
parent 0e1b0c111e
commit 37beb8b436

View File

@@ -599,6 +599,7 @@ class Account extends AppModel {
if (!$entry->saveAll($entry_data, array('validate'=>false))) {
return false;
}
$entry->recursive = -1;
$entry->read();
//pr(array('post-save', $entry->data));