$vehicles = \Model_Inventory_Main::find('all', array( 'related' => array( 'photos' => array( 'order_by' => array('order' => 'ASC'), ), ), 'where' => array( array('type', '!=', 'new') ) ));
Now, the problem is that it's not ordering the relation by the 'order' column. It's ordering them by the primary key.
This is nuts though, because I copy/paste the query into a controller and run it and it sorts them properly. Any ideas?
It looks like you're new here. If you want to get involved, click one of these buttons!