public function batchCommitUpdatesFromCollection(RepositoryCollection $collection, $propertyPairs)
    {
        foreach ($collection as $item) {
            $item->mergeRawData($propertyPairs);
            $item->save();
        }
    }
public function batchCommitUpdatesFromCollection(RepositoryCollection $collection, $propertyPairs)
    {
        foreach ($collection as $item) {
            $item->mergeRawData($propertyPairs);
            $item->save();
        }
    }
public function batchCommitUpdatesFromCollection ( RepositoryCollection $ collection , $ propertyPairs ) { foreach ( $ collection as $ item ) { $ item -> mergeRawData ( $ propertyPairs ) ; $ item -> save ( ) ; } }
Commits changes to the repository in batch against a collection.

@param RepositoryCollection $collection
@param $propertyPairs
Commits changes to the repository in batch against a collection .