support of composite key by yii CRUD
Posted 12 March 2011 - 01:44 AM
If so please explain me how does it do.
If not what is the second chance of it.
Please help me
If I am not mistaken, it can't implement composite key for CRUD. In order to use Gii generator power to generate CRUD, you must create a field for primary key. What I usually do is creating a field name 'id' as primary key. While the other field which is used to be composite key are changed to UNIQUE...
Posted 12 March 2011 - 07:37 PM
Posted 16 March 2011 - 03:33 AM
Thanks for the idea.
Posted 12 July 2012 - 03:16 PM
Currently the generated views look and function just like views that are created using gii. I will add in error handling though later on to prevent the ugly errors that appear when trying to delete a row from a table that is referenced by a child in another table.
I hope this is a time saver for everyone.
Posted 01 September 2013 - 03:56 AM
Now I just have to get it running in the app. Anyway, thanks for the tool, I'm a newb in yii and
this tool seems to have shed light with the problem about the composite keys in yii.