Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Translate complex query into ORM
  • Is it possibile translate this DB query using ORM method chaining???
    $query = 'SELECT a.*, b.children AS childrens FROM pages AS a 
                     LEFT JOIN (SELECT parent, COUNT(id) as children FROM pages GROUP BY parent) AS b 
                             ON a.id = b.parent WHERE a.parent= 71';
    
    DB::query($query)->execute();
    

Howdy, Stranger!

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

In this Discussion