Hello,

I am reading about 
associations<http://book.cakephp.org/1.3/view/1039/Associations-Linking-Models-Together>in
 CakePHP and I see the following sample:

//Sample results from a $this->Profile->find() call.

Array
(
   [Profile] => Array
        (
            [id] => 12
            [user_id] => 121
            [skill] => Baking Cakes
            [created] => 2007-05-01 10:31:01
        )    
    [User] => Array
        (
            [id] => 121
            [name] => Gwoo the Kungwoo
            [created] => 2007-05-01 10:31:01
        )
)


My question is regarding the internal behavior of the Model. How is the 
association being handled internally? Does the model creates one select 
query with the joins, or does it make two separate select queries in order 
to get the Profile and the User results and then it merges them?

Thank you for your time.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to