Love Fuel?    Donate

FuelPHP Forums

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 
    Thanks man. 
    ________________________ 
    translated by google translate
  • As I said, you don't have to?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion