You mean bindModel() calls?

On 9 дек, 12:00, Almudena Garcia <[email protected]> wrote:
> Good day,
>
> Isn't it simple if you paste here your code?
> Anyway, I don't see in your cake query any join...
> What are you trying to do?
>
> Regards.
>
> 2010/12/9 Andrew Hodirevski <[email protected]>
>
>
>
>
>
>
>
> > Good day!
> > So, I have the next tables:
>
> > projects
> > users
> > projects_users
>
> > Project hasAndBelongsToMany User
> > User hasAndBelongsToMany Project
> > ProjectsUser belongsTo User
> > ProjectsUser belongsTo Project
>
> > Here is code all of models:
> >https://gist.github.com/734531
>
> > So, when I am trying to do the next query:
> >https://gist.github.com/734540
>
> > Cake generates the next SQL queries:
> >https://gist.github.com/734533
>
> > You can see that queries between User and Project are separated but
> > relations are set in models. Also you can see that belongsTo relations
> > between ProjectsStatus and ProjectsError to Project model are executed
> > successfully as joining this tables in the first query. The commented
> > line in code show what I want.
>
> > So, the question is:
> > Why Cake not automatically joins my HABTM relations between Project
> > and User and how to do it? It I use the 'joins' => array() all is
> > work, but I want it be done automatically.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected] 
> > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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 [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

Reply via email to