lithium\data\model\Query::childs PHP Метод

childs() публичный Метод

The getter must be called after an export since the sub queries are built during the export according the export's mode option and the query with option.
См. также: lithium\data\model\Query::export()
public childs ( string $relpath = null, string $query = null ) : mixed
$relpath string a dotted relation path
$query string a query instance
Результат mixed
    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;
    }