Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Related model not found
  • hi,
    i want to set relation between package model and Moduel model.
    i use this code
    'province' => array(
                'key_from'       => 'province_id',
                'model_to'       => '\\Default\\Model_Province',
                'key_to'         => 'id',
                'cascade_save'   => true,
                'cascade_delete' => false
    )
    but send me error :
    error : Related model not found by Belongs_To relation "province": \Default\Model_Province

  • Solved.
    must load module first, when i use.
    \Module::load('Default');

Howdy, Stranger!

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

In this Discussion