lithium\data\model\Query::childs PHP Méthode

childs() public méthode

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.
See also: 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
Résultat 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;
    }