Thank you! you are very nice! Rimoe
2010/5/27 John Andersen <[email protected]> > As specified in the CakePHP book at: > http://book.cakephp.org/view/73/Retrieving-Your-Data#findBy-451 > > the findBy<fieldname> does not take a second parameter. > So in order to set the recursive to 0, do this before your > findBy<fieldname> call. > > [code] > $this->YourModelName->recursive = 0; > $data = $this->YourModelName->findByusername('aaaa'); > [/code] > > Enjoy, > John > > On May 27, 11:37 am, Rimoe <[email protected]> wrote: > > hi, > > > > I have use the findby function, but the recursive param have no role. > > my cakephp version is 1.2.1.8004 > > > > for example > > I have use the model function > > findbyusername('aaaa', array('recursive' => 0)); > > > > but it has show like findbyusername('aaaa', array('recursive' => 1)); > > > > do I have wrong use the function > > > > I want to show the result just like > > find('first',array('conditions' => array('username'=>'aaaa'),'recursive' > => > > 0)); > > > > is it a bug? > > > > thank you > > > > Rimoe > > 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]<cake-php%[email protected]>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
