octobercms/october — pull request #802 by nicolas-lescop (2014-12-01 15:16:35+00:00)
Title: Extend query on relation behavior

From a relation behavior config file like this

checks:
label: Status
list: @/plugins/path/to/your/relation/config/columns.yaml
emptyMessage: backend::lang.list.no_records

You can extend the list query with this method :

relationStatus_listExtendQuery($query)
{
// Here you can extend query definitions
return $query;
}