public function getAllChildren($includeSelf = false)
    {
        return call_user_func("$this->ownerClassName::find")
            ->where([
                $this->primaryKey => $this->getChildrenId($includeSelf),
            ])
            ->orderBy("$this->parentIdField ASC, $this->sortField ASC, $this->primaryKey ASC");
    }
public function getAllChildren($includeSelf = false)
    {
        return call_user_func("$this->ownerClassName::find")
            ->where([
                $this->primaryKey => $this->getChildrenId($includeSelf),
            ])
            ->orderBy("$this->parentIdField ASC, $this->sortField ASC, $this->primaryKey ASC");
    }
public function getAllChildren ( $ includeSelf = false ) { return call_user_func ( "$this->ownerClassName::find" ) -> where ( [ $ this -> primaryKey => $ this -> getChildrenId ( $ includeSelf ) , ] ) -> orderBy ( "$this->parentIdField ASC, $this->sortField ASC, $this->primaryKey ASC" ) ; }
Return all children, including subchildren
@param boolean $includeSelf
@return \yii\db\ActiveQueryInterface
Return all children including subchildren