Does anyone know if it is possible to reduce hasMany relations?
class MyModel extends Model
{
...
public function initialize(){
$this->hasMany("id","SomeChild","parentId",array('alias' => 'children' /* maybe somthing like: "active = 1" */ ));
}
// or
public function getActiveChildren(){
return $this->children->where("active = 1");
}
}