On 07/08/12 21:41, Luis C wrote:
Ok,
It is even worse now.
Let's say I have a hasAndBelongsToMany association in Dog.php with
another table (Model). And then in the Controller I have the following
$this->Dog->find('all');
print_r($this->OtherModel); exit;
Instead of getting an instance of OtherModel and all of the
associations and variables in it I get an instance of AppModel. if I
move the print_r above the dog->find line I get the correct output. If
I remove the association I also get the correct output.
Any ideas why? Anybody...
Does OtherModel.php exist in your plugin/Model directory ?
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.