src/AbstractEntityService.php
public function multiPersist($entities)
    {
        if (!$this->isRepositoryWritable()) {
            throw $this->createNotWritableException();
        }

        return $this->trigger(__FUNCTION__, [
            'entities' => $entities,
        ]);
    }
public function multiPersist($entities)
    {
        if (!$this->isRepositoryWritable()) {
            throw $this->createNotWritableException();
        }

        return $this->trigger(__FUNCTION__, [
            'entities' => $entities,
        ]);
    }
public function multiPersist ( $ entities ) { if ( ! $ this -> isRepositoryWritable ( ) ) { throw $ this -> createNotWritableException ( ) ; } return $ this -> trigger ( __FUNCTION__ , [ 'entities' => $ entities , ] ) ; }
Persist the given object and flushes it to the storage device.

@param array|Collection|Traversable $entities The entities to persist.
@return mixed
@throws RuntimeException
Persist the given object and flushes it to the storage device .