Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Crud with multi field primary key
  • Hi, I wonder if it's possible to have a primary key that contains multiple fields in the Crud? I've tried to do it like defined in the ORM using an array, http://docs.fuelphp.com/packages/orm/creating_models.html , but it didn't work out. This is the sample: class Model_Article extends \Model_Crud
    {
    protected static $_primary_key = array('prim_key_1', 'prim_key_2'); // rest of the code
    } thanks for the help!
  • No, the current Model_Crud has no support for compound keys.

Howdy, Stranger!

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

In this Discussion