Why do you need it? Any right join can be replaced with a left join.

You can use "find" on associated model to achieve a right join. Eg, instead
of:

$this->Model1->findAll("Model1.field = 'value'")

you can use:

$this->Model2->findAll("Model1.field = 'value'")

assuming that the two models are associated in some way

2007/8/12, Aurelijus Valeiša <[EMAIL PROTECTED]>:
>
> Hey folks,
> is there any way to do RIGHT JOIN in CakePHP ?
> I mean without using $this->ModelName->query("SQL QUERY");
>
> Thanks for suggestions.
>
> --
> Aurelijus Valeiša
>
> >
>


-- 
Sincerely yours,
Olexandr Melnyk
http://omelnyk.net/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

  • RIGHT JOIN Aurelijus Valeiša
    • Re: RIGHT JOIN Olexandr Melnyk

Reply via email to