public function getSubsidiaries($name, $limit = 'all', $page = 0)
    {
        $class = $this->getSubsidiaryClass($name);
        if (empty($class)) {
            return null;
        }
        $query = $class::find();
        if (!method_exists($query, 'createdBy')) {
            return null;
        }
        return $query->createdBy($this)->page($limit, $page)->all();
    }
public function getSubsidiaries($name, $limit = 'all', $page = 0)
    {
        $class = $this->getSubsidiaryClass($name);
        if (empty($class)) {
            return null;
        }
        $query = $class::find();
        if (!method_exists($query, 'createdBy')) {
            return null;
        }
        return $query->createdBy($this)->page($limit, $page)->all();
    }
public function getSubsidiaries ( $ name , $ limit = 'all' , $ page = 0 ) { $ class = $ this -> getSubsidiaryClass ( $ name ) ; if ( empty ( $ class ) ) { return null ; } $ query = $ class :: find ( ) ; if ( ! method_exists ( $ query , 'createdBy' ) ) { return null ; } return $ query -> createdBy ( $ this ) -> page ( $ limit , $ page ) -> all ( ) ; }
Get subsidiaries.
@param $name Subsidiary name, case insensitive.
@param string $limit
@param int $page
@return null
Get subsidiaries .