Yii Framework Forum: Database relation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Database relation Rate Topic: -----

#1 User is offline   Mrsome1 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 13-March 10

Posted 17 March 2010 - 04:49 AM

Hello,

If I did my database relation using SQL, does Yii understand that relations between tables?


Thanks.
0

#2 User is offline   ps_sach 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 79
  • Joined: 07-December 09

Posted 17 March 2010 - 04:52 AM

View PostMrsome1, on 17 March 2010 - 04:49 AM, said:

Hello,

If I did my database relation using SQL, does Yii understand that relations between tables?


Thanks.


Yes, but you need to define it explicitly in your model

I think this is what you are looking for http://www.yiiframew...de/database.arr

I hope this will help you!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users