Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
The related function works strangly
  • Hi, I've a little problem with the related function. See the code below :
    $list_categories =  Model_Dropdown::find_by_name('global_categories_email_model',array('related'=>array('options'=>array('order_by' =>array('label'=>'asc')))));

    This code work fine only if the "name" argument is my first entry in the database. For example the code below :
    $list_categories =  Model_Dropdown::find_by_name('global_categories_email_model_2',array('related'=>array('options'=>array('order_by' =>array('label'=>'asc')))));

    Doesn't return me anything. If a remove the "related" function, all is working fine...................

Howdy, Stranger!

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