public function createCollection($collectionName, array $options = [])
    {
        $this->document = $this->db->getQueryBuilder()->createCollection($collectionName, $options);

        $result = current($this->execute()->toArray());
        return $result['ok'] > 0;
    }
public function createCollection($collectionName, array $options = [])
    {
        $this->document = $this->db->getQueryBuilder()->createCollection($collectionName, $options);

        $result = current($this->execute()->toArray());
        return $result['ok'] > 0;
    }
public function createCollection ( $ collectionName , array $ options = [ ] ) { $ this -> document = $ this -> db -> getQueryBuilder ( ) -> createCollection ( $ collectionName , $ options ) ; $ result = current ( $ this -> execute ( ) -> toArray ( ) ) ; return $ result [ 'ok' ] > 0 ; }
Creates new collection in database associated with this command.s
@param string $collectionName collection name
@param array $options collection options in format: "name" => "value"
@return bool whether operation was successful.
Creates new collection in database associated with this command . s