Thanks for the response, I won't have a chance to test this until monday. I tried to understand the containable behavior but it just doesn't seem to be working for me. I'll keep at it. Thanks.
On Apr 17, 9:44 pm, yodi <y...@yodi.web.id> wrote: > Oopss, i'm forgot Registration, here : > > function paginateSearch($id = array()) > { > $this->recursive = '0'; > $result = array('fields'=>'Code.id,Code.name', > 'contain' =>array('RegistrationCodes'=>array( > 'fields'=>array('RegistrationCodes.id, RegistrationCodes.code_id, > RegistrationCodes.registration_id'), > 'Registration' > )), > 'limit' => 10 > ); > > return $result; > } > > On Sat, 2009-04-18 at 08:39 +0700, yodi wrote: > > function paginateSearch($id = array()) > > { > > $this->recursive = '0'; > > $result = array(fields'=>'Code.id,Code.name', > > 'contain' => > > array('RegistrationCodes'=>array( > > > > 'fields'=>array('RegistrationCodes.id,RegistrationCodes.code_id,RegistrationCodes.registration_id'), > > )), > > 'limit' => 10 > > ); > > > return $result; > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~----------~----~----~----~------~----~------~--~---