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 [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
-~----------~----~----~----~------~----~------~--~---