src/Model/ModelUtil.php
public function findMultipleModelInstancesByIds(string $table, array $ids, array $options = [])
    {
        /* @var Model $adapter */
        if (!($modelClass = $this->framework->getAdapter(Model::class)->getClassFromTable($table))) {
            return null;
        }

        if (null === ($adapter = $this->framework->getAdapter($modelClass))) {
            return null;
        }

        if ($this->container->get('huh.utils.dca')->isDcMultilingual($table)) {
            $table = 't1';
        }

        return $adapter->findBy(["$table.id IN(".implode(',', array_map('\intval', $ids)).')'], null, $options);
    }
public function findMultipleModelInstancesByIds(string $table, array $ids, array $options = [])
    {
        /* @var Model $adapter */
        if (!($modelClass = $this->framework->getAdapter(Model::class)->getClassFromTable($table))) {
            return null;
        }

        if (null === ($adapter = $this->framework->getAdapter($modelClass))) {
            return null;
        }

        if ($this->container->get('huh.utils.dca')->isDcMultilingual($table)) {
            $table = 't1';
        }

        return $adapter->findBy(["$table.id IN(".implode(',', array_map('\intval', $ids)).')'], null, $options);
    }
public function findMultipleModelInstancesByIds ( string $ table , array $ ids , array $ options = [ ] ) { /* @var Model $adapter */ if ( ! ( $ modelClass = $ this -> framework -> getAdapter ( Model :: class ) -> getClassFromTable ( $ table ) ) ) { return null ; } if ( null === ( $ adapter = $ this -> framework -> getAdapter ( $ modelClass ) ) ) { return null ; } if ( $ this -> container -> get ( 'huh.utils.dca' ) -> isDcMultilingual ( $ table ) ) { $ table = 't1' ; } return $ adapter -> findBy ( [ "$table.id IN(" . implode ( ',' , array_map ( '\intval' , $ ids ) ) . ')' ] , null , $ options ) ; }
Returns multiple model instances by given table and ids.

@param string $table
@param array  $ids
@param array  $options

@return mixed
Returns multiple model instances by given table and ids .