Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Primary keys with different id name
Good morning guys,
I will apply the fuel in an existing project, where the primary keys are as 'code' and not 'id'.
How do I read 'code' as 'id' in $ _properties?
Good afternoon this end of the world.
The $_properties property list the columns, and optionally the column definition.
The primary key is defined in $_primary_key. This is an array, so you can define multiple columns if you have a table containing a compound primary key.
Good morning, Brazilian greetings my friend
would be tragic to have to change the names of my fields
translated by google translate
As I said, you don't have to?
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion