Thanks for trying - I finally figured it out. $queryData['recursive'] from the beforeFind is actually set to -1 (I guess it is because it's a list type of find (pure speculation here)).
Just edit the behavior and set recursive to 1 - you're set! On 6 jan, 16:04, Webweave <[email protected]> wrote: > Your paste shows the Evaluation model, with a belongsTo for the > Utilisateur, but your find appears to be from the Autorisation > controller (since you have $this->Autorisation->Evaluation). > > I would think at a minimum, your find should be using: $this- > > >Autorisation->Evaluation->Utilisateur, or $this->Evaluation- > >Utilisateur > > On Dec 26 2008, 2:05 pm, Jimmy Bourassa <[email protected]> wrote: > > > Hello, > > > I'm trying to get the multiple display fields behavior to work using > > Cosmin Cimpoi's version (comment #7 from the bakery > > :http://bakery.cakephp.org/articles/view/multiple-display-field-3#comm...). > > > Everything works fine if I'm not trying to fetch data from belongsTo > > associations. But when I try to use my belongsTo association, there's > > no JOIN in my SQL request. > > > I pasted my code and and the resulting SQL request here > > :http://bin.cakephp.org/view/2110425695 > > > Any clue would be appreciated! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
