Hi there,
If I have a class that has a relation to another class and want to retrieve a DatabaObjectSet through the relation, can I also use filtering and sorting in the method call. For example:
<code>
Class myClass extends Page {
static $has_many = array { 'Students' => 'Student'; }
...
...
$mySeniorStudents = $this->Students('LasttName ASC', 'Age > 16');
}
</code>
I couldn't find any docs on this but I guess I'm trying to find something similar to the DataObject::get($obj, $filter, $sort, $join, $limit) method. If there is documentation, can you pls. provide the url?
thanks!
Steve