fuel/orm — pull request #151 by chadhutchins (2012-05-14 18:11:16+00:00)
Title: Added where/order_by support for Has Many Relationship - Related to Issue #4

I added code to respect the relationship condition definitions, both where and order_by, when related records are being retrieved for has-many relationships. This same idea probably needs to be applied across all relationship types.

I implemented the code according to how the functionality is explained in the documentation: http://docs.fuelphp.com/packages/orm/relations/intro.html#config

Example Usage:
```php
protected static $_has_many = array(
'comments' => array(
'key_from' => 'id',
'model_to' => 'Model_Comment',
'key_to' => 'parent_id',
'cascade_save' => false,
'cascade_delete' => false,
'conditions' => array(
'where' => array(
array('model_class','=','Model_Page'),
),
'order_by' => array(
'created_at' => 'DESC'
),
),
),
);
```