public function renameCollection($collection, $newName)
    {
        try {
            return $this->_toolbox->getCollectionHandler()->rename($collection, $newName);
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function renameCollection($collection, $newName)
    {
        try {
            return $this->_toolbox->getCollectionHandler()->rename($collection, $newName);
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function renameCollection ( $ collection , $ newName ) { try { return $ this -> _toolbox -> getCollectionHandler ( ) -> rename ( $ collection , $ newName ) ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new CollectionManagerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
Renames a collection.
@param  string                     $collection The collection we wish to rename.
@param  string                     $newName    The new name of the collection.
@throws CollectionManagerException
Renames a collection .