src/Common/Manager/AbstractManager.php
public function createMany(array $data, $modelClass = null)
    {
        $models = [];
        foreach ($data as $item) {
            $models[] = $this->fromArray($item, $modelClass);
        }

        return $models;
    }
public function createMany(array $data, $modelClass = null)
    {
        $models = [];
        foreach ($data as $item) {
            $models[] = $this->fromArray($item, $modelClass);
        }

        return $models;
    }
public function createMany ( array $ data , $ modelClass = null ) { $ models = [ ] ; foreach ( $ data as $ item ) { $ models [ ] = $ this -> fromArray ( $ item , $ modelClass ) ; } return $ models ; }
Create many models from an array.

@param array $data
@param string $modelClass

@return ModelInterface[]
Create many models from an array .