main/app/API/Crud.php
public function copyBulk($class, array $data, array $options = [])
    {
        $this->om->startFlushSuite();
        $copies = [];

        foreach ($data as $el) {
            //get the element
            $copies[] = $this->copy($el, $options);
        }

        $this->om->endFlushSuite();

        return $copies;
    }
public function copyBulk($class, array $data, array $options = [])
    {
        $this->om->startFlushSuite();
        $copies = [];

        foreach ($data as $el) {
            //get the element
            $copies[] = $this->copy($el, $options);
        }

        $this->om->endFlushSuite();

        return $copies;
    }
public function copyBulk ( $ class , array $ data , array $ options = [ ] ) { $ this -> om -> startFlushSuite ( ) ; $ copies = [ ] ; foreach ( $ data as $ el ) { //get the element $ copies [ ] = $ this -> copy ( $ el , $ options ) ; } $ this -> om -> endFlushSuite ( ) ; return $ copies ; }
Copy a list of entries of `class`.

@param string $class   - the class of the entries to copy
@param array  $data    - the list of entries to copy
@param array  $options - additional copy options
Copy a list of entries of class .