public function childs($relpath = null, $query = null) { if (!($model = $this->model())) { throw new ConfigException("No binded model."); } if ($query) { $this->_childs[$relpath] = $query; return $this; } return $this->_childs; }