centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

Form model require a column named "id" #87

Open kdubuc opened 12 years ago

kdubuc commented 12 years ago

The Form model require a column named "id" in the database, else an exception is thrown "Specified column "id" is not in the row".There is a way to custom the id column (example : ID_ARTICLE) ?

lchenay commented 12 years ago

It's a known problem. Same in CRUD. We have to change in Centurion class, all direct call $row->id to $row->pk and manage the case when pk are an array.

lchenay commented 12 years ago

https://groups.google.com/forum/?fromgroups#!topic/centurion-project/KESNwTJ8Ddc