Hi,
I'm having problems with using restrict() to change my model bindings.
I'm passing the following array into restrict:
Array
(
[AssocExpense] => Array
(
[conditions] => Array
(
[ExpenseReconciliation.reconciliation_id] => 1
[expense_id] => Array
(
[0] => 79
)
)
)
[Account] => Array
(
[fields] => Array
(
[0] => id
[1] => Account.name` as `displayField
[2] => date
[3] => amount` as `value
)
)
)
When I dump the model after calling restrict(), all the relationships
now appear empty(hasMany, etc).
When I run findAll, none of it takes effect (none of my original
relationship bindings work either) and no errors are thown.
Any ideas? I have no real clue how to debug this, and I don't want to
resort to bindModel etc.
Cheers...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---