Yii Framework Forum: Crud With Composed Primary Key - Yii Framework Forum

Jump to content

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

Crud With Composed Primary Key Rate Topic: -----

#1 User is offline   gelly 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 13-June 13

Posted 13 June 2013 - 11:32 AM

Hello,

I'm getting started with yii and have come to a problem with the CRUD.
I have a table whith a composed primary key, so I can't create a CRUD.
Is there a better solution than adding a field specially for the key?

Thanks a lot for the help =)
0

#2 User is offline   Balu 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 153
  • Joined: 09-August 11
  • Location:Kerala, India

Posted 14 June 2013 - 04:44 AM

View Postgelly, on 13 June 2013 - 11:32 AM, said:

Hello,

I'm getting started with yii and have come to a problem with the CRUD.
I have a table whith a composed primary key, so I can't create a CRUD.
Is there a better solution than adding a field specially for the key?

Thanks a lot for the help =)


Check your table, is there any empty space in the feild,
0

#3 User is offline   gelly 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 13-June 13

Posted 16 June 2013 - 04:26 PM

No there wasn't, but my friend using yii told me that is was normal that we can't use CRUD with composed primary key, so I've created a field for the id...
0

#4 User is offline   sefburhan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 08-February 12
  • Location:islamabad

Posted 17 June 2013 - 12:06 AM

View Postgelly, on 13 June 2013 - 11:32 AM, said:

Hello,

I'm getting started with yii and have come to a problem with the CRUD.
I have a table whith a composed primary key, so I can't create a CRUD.
Is there a better solution than adding a field specially for the key?

Thanks a lot for the help =)

giix supports
see this link http://www.yiiframew.../extension/giix

and please visit these links for help
http://www.yiiframew...posite-primary/
http://www.yiiframew...y-crud-command/
http://www.yiiframew...ey-by-yii-crud/
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