public function prepareRelationFilter($type)
    {
        if (!array_key_exists($type, $this->filters) || !is_array($this->filters[$type])) {
            $this->filters[$type] = array();
        }
        return $this;
    }