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 =)
Page 1 of 1
Crud With Composed Primary Key
#2
Posted 14 June 2013 - 04:44 AM
gelly, 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 =)
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,
#3
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...
#4
Posted 17 June 2013 - 12:06 AM
gelly, 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 =)
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/
Share this topic:
Page 1 of 1