also i create one manual query but it is also not working can u check my
manual query???


 $this->set('image1',$this->Image->query("
            SELECT images.* FROM images
            INNER JOIN image_students ON images.id = image_students.image_id
            LEFT OUTER JOIN tag_images ON images.id = tag_images.image_id
            INNER JOIN tags ON tag_images.id = tags.id
            WHERE tags.tag_name ='Hello' OR image_students.student_id ='0';
            "));
 Plz Hellp me...!

Thansk
On Mon, May 17, 2010 at 2:27 PM, Dilip Godhani <[email protected]>wrote:

> Hello sir,
>
> i understand that relationship but it is not working...!
>
>
>
> On Mon, May 17, 2010 at 2:01 PM, John Andersen <[email protected]>wrote:
>
>> Can I assume that you do understand about ER models (Entity-
>> Relationship models) and thus about relationships between your tables
>> in your database?
>>
>> If you do understand that, then please read carefully the CakePHP book
>> on associating/relating models to each other in:
>> http://book.cakephp.org/view/1039/Associations-Linking-Models-Together
>>
>> When done, please tell us what you want to do and whether you got any
>> errors doing it.
>> Enjoy,
>>    John
>>
>> On May 17, 10:28 am, Dilip Godhani <[email protected]> wrote:
>> > Yes....alll thing is ok but i cnt understood raltionship
>> > can u tell me wich model which realationship i give in model file
>> >
>> > Thanks...!
>> [snip]
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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]<cake-php%[email protected]>For
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
>
> --
> Dilip Godhani
> Jr Software Developer, Entourage Solutions
> e-mail: [email protected]
>           [email protected]
> Web.: www.entouragesolutions.com
> m. 9913822582
>



-- 
Dilip Godhani
Jr Software Developer, Entourage Solutions
e-mail: [email protected]
          [email protected]
Web.: www.entouragesolutions.com
m. 9913822582

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to