What is the actual name of model2 and what is its filename? If the
file isn't being found, model2 is of type AppModel and not model2,
which would explain why you can't access a method defined in model2.

On Mar 4, 12:36 pm, mathaios <mathaio...@gmail.com> wrote:
> Hallo all bakers! I hope someone can help me...
>
> I have two models related trough a "to many-belongs to" relationships.
> I've set in model2 a method called "put" that do some db manipulation.
>
> But when I call the "put" method from the related model1 controller
> (as $this->model1->model2->put() ) the method name get's executed like
> an SQL query!
> But if I call something like e.g. $this->model1->model2->find('all')
> records are correctly fetched.
>
> What can be the problem? I'm getting mad on this !
> Thanks for any advice

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to