compound keys and models

edited November 2011 in Share
Hi, one of the properties of basic models is the $key_field used to set the underlying table's primary field.
According to the documentation ;
// usually the tables primary key(s)... can be an array if compound key
I've tried assigning it an array since am using a compound key to no avail. Such tasks as editing entries require to identify the specific row. Hence all I get is errors.

What am I doing wrong? Can I really assign an array to the property?

Comments

  • edited 11:44PM
    Something that is not spelled out in the documentation is that if you create a model used in the FUEL admin (iBase_module_model instead of MY_Model), it requires a single primary key. This is because the links in the admin use a single value to edit (e.g. fuel/my_module/edit/1)
Sign In or Register to comment.