Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Query with relation broken in 1.1
  • Hi! This query used to work pre 1.1 (a company has many notes)
    $company = Model_Company::find()
      ->where('id', $id)
      ->related('notes', array('order_by' => array('notes.id' => 'desc')))
    ->get_one();
    

    It only fetches the first note now as opposed to fetching all notes pre 1.1. I could't find anything in the patch notes indicating a change to this type of query (except the ability to change join type). Have I missed something here?
  • to-many only takes one row now, just fixed this in 1.1/develop branch.
  • Alright, good to know. Thanks!

Howdy, Stranger!

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

In this Discussion