How extensive is an Object in CakePHP model linkage?
Posted
by Andre
on Stack Overflow
See other posts from Stack Overflow
or by Andre
Published on 2010-05-10T14:56:17Z
Indexed on
2010/05/10
16:14 UTC
Read the original article
Hit count: 284
I was hoping someone with an understanding on CakePHP could shed some light on a question I've been having.
Here's my scenario, I have a User
this User
has a Company
which in turn has many Department
and many Address
. If I were to get a User
could I expect to have access to the Company
and all models associated with that Company
?
So would $user['Company']['Department'][0]
or $user['Company']['Address'][0]
be possible?
Which brings me back to the original question, how extensive is the linkage between models?
© Stack Overflow or respective owner