Manager/GenericDocumentManager.php
public function save($documents)
    {
        foreach ($documents as $document) {
            $this->dm->persist($document);
        }

        return $this->dm->flush();
    }
public function save($documents)
    {
        foreach ($documents as $document) {
            $this->dm->persist($document);
        }

        return $this->dm->flush();
    }
save

@param array Array of objects or object