sounds cool shaz, thanks for your reply, i'll try On 21 Mrz., 12:52, Shaz <[email protected]> wrote: > Can you put up your $this->find() statements and the results you get > with them? > > I would've thought (in the Agreement Model) you could do something > along the lines of this->Definition->Article find(all) > conditions(article.field => '%string%') contain( user, agreement, > definition) groupBy(definitions). > > On Mar 21, 11:24 am, duderion <[email protected]> wrote: > > > hi cakies, > > > i got the following model relations User->hasmany->Agreement->hasmany- > > > >Definition->hasOne->Article > > > my problem is, in my Agreement Search (in the A.Model) i want to find > > the Definitions where it's Article matches a string. the problem is, > > even if i do $this->recursive=2, the Agreement is only joined to the > > User in the SQL Statement. Nor the Definitions. > > If i simply search for an agreement by it's name, the definitions and > > articles exist in the result...but not during search..... > > > i tried the containable behaviour, but that didnt help (it just > > influenced the resulting array) > > > duderion
-- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
