fuel / orm

Fuel PHP Framework - Fuel v1.x ORM
http://fuelphp.com/docs/packages/orm/intro.html
152 stars 96 forks source link

\Orm\Query create duplicate order_by statement. #120

Closed crynobone closed 12 years ago

crynobone commented 12 years ago

There a bug with the current Orm package for FuelPHP, seem to me the order_by was added twice.

Reference:


\Model_Work::query()
    ->order_by('to', 'ASC')
    ->order_by('from', 'DESC')
    ->get();

# Generate
SELECT ...
FROM `works` AS `t0` 
ORDER BY `t0`.`to` ASC, `t0`.`from` DESC, 
`t0`.`to` ASC, `t0`.`from` DESC
WanWizard commented 12 years ago

Issue was fixed and merged months ago. Closing issue.