Yii Framework Forum: Composite Primary Keys - Yii Framework Forum

Jump to content

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

Composite Primary Keys Rate Topic: -----

#1 User is offline   AndrĂ© 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 11-December 12

  Posted 11 December 2012 - 05:37 AM

Hi,

I know, from reading this:
- http://www.yiiframew...mparing-records
- http://www.yiiframew...ema-design/#hh3

that Yii officially supports composite primary keys in the database scheme.

My question is whether this approach implies many drawbacks within the framework? Is all the logic prepared for this, or does it work more like an hack?
0

#2 User is offline   Keith 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,670
  • Joined: 04-March 10
  • Location:UK

Posted 11 December 2012 - 08:09 AM

Composite primary keys work fine. Active record handles them consistently if that's what you're asking.
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