src/Shell/SeedShell.php
protected function getModuleIds(string $moduleName) : array
    {
        $table = TableRegistry::get($moduleName);
        $query = $table->find()
            ->limit(100)
            ->select($table->getPrimaryKey());

        $result = [];
        foreach ($query->all() as $entity) {
            $result[] = $entity->get($table->getPrimaryKey());
        }

        return $result;
    }
protected function getModuleIds(string $moduleName) : array
    {
        $table = TableRegistry::get($moduleName);
        $query = $table->find()
            ->limit(100)
            ->select($table->getPrimaryKey());

        $result = [];
        foreach ($query->all() as $entity) {
            $result[] = $entity->get($table->getPrimaryKey());
        }

        return $result;
    }
protected function getModuleIds ( string $ moduleName ) : array { $ table = TableRegistry :: get ( $ moduleName ) ; $ query = $ table -> find ( ) -> limit ( 100 ) -> select ( $ table -> getPrimaryKey ( ) ) ; $ result = [ ] ; foreach ( $ query -> all ( ) as $ entity ) { $ result [ ] = $ entity -> get ( $ table -> getPrimaryKey ( ) ) ; } return $ result ; }
Get Module ids in an array.

@param string $moduleName module name
@return string[]
Get Module ids in an array .