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@283 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user