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;
    }