src/Model/ModelUtil.php
public function findAllModelInstances(string $table, array $arrOptions = []): ?Collection
    {
        if (!($modelClass = $this->framework->getAdapter(Model::class)->getClassFromTable($table))) {
            return null;
        }

        /* @var Model $adapter */
        if (null === ($adapter = $this->framework->getAdapter($modelClass))) {
            return null;
        }

        return $adapter->findAll($arrOptions);
    }
public function findAllModelInstances(string $table, array $arrOptions = []): ?Collection
    {
        if (!($modelClass = $this->framework->getAdapter(Model::class)->getClassFromTable($table))) {
            return null;
        }

        /* @var Model $adapter */
        if (null === ($adapter = $this->framework->getAdapter($modelClass))) {
            return null;
        }

        return $adapter->findAll($arrOptions);
    }
public function findAllModelInstances ( string $ table , array $ arrOptions = [ ] ) : ? Collection { if ( ! ( $ modelClass = $ this -> framework -> getAdapter ( Model :: class ) -> getClassFromTable ( $ table ) ) ) { return null ; } /* @var Model $adapter */ if ( null === ( $ adapter = $ this -> framework -> getAdapter ( $ modelClass ) ) ) { return null ; } return $ adapter -> findAll ( $ arrOptions ) ; }
Find all model instances for a given table.

@param string $table      The table name
@param array  $arrOptions Additional query options

@return Collection|null
Find all model instances for a given table .