My table structure is: $this->State->City $this->State->City->Disctrict, then the query that I want to do is: (In State Controller)
$this->paginate=array( 'contain'=>array( 'City'=> array( 'District'=>array('fields'=>array('id','name')),'fields'=>array('id','name')), 'conditions'=>array('District.name LIKE '=>'%'. $this- >params['form']['search'].'%')); The system warns this Error: Unknown column District.nome this happens because District.nome is not an atributte of the State Model. Thanks for your reply. Then, sorry for my basic english. On Jul 27, 9:56 am, Jens Dittrich <jdittr...@gmail.com> wrote: > what is your table structure and what do you want to query? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php