Apparently this kind of filtering only works in cakePHP version 1.2.
How would I implement this in a previous version of cakePHP?
Please send any tips/links/advice.
Thanks in advance.
AngeloZanetti wrote:
>
>
>
> rtconner wrote:
>>
>>
>> You have to use an INNER join.
>>
>> var $belongsTo = array(
>> 'Competition' => array('className' => 'Competition',
>>
>> 'foreignKey' => 'competition_id',
>> 'type' =>
>> 'INNER'
>> )
>> );
>>
>>
>
> Apparently this only works in CakePHP 1.2. However we are using a version
> before 1.2 and was wondering what other ways there are to filter on the
> second model?
>
> Thanks in advance.
>
>
--
View this message in context:
http://www.nabble.com/Filter-on-BelongsTo-relationship-tp20697216p21089814.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---