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