Skip to content

class 'MongoDB\Database' does not have a method 'getDoctrineDriver' #2220

@MeerKatDev

Description

@MeerKatDev
  • Laravel-mongodb Version: 3.8
  • PHP Version: 7.4
  • Database Driver & Version:
pro@MBP-Macbook lookinglass-backend % mongo --version
MongoDB shell version v4.4.3
Build Info: {
    "version": "4.4.3",
    "gitVersion": "913d6b62acfbb344dde1b116f4161360acd8fd13",
    "modules": [],
    "allocator": "system",
    "environment": {
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

Description:

I'm trying to use this package with Backpack. Backpack is requesting that method:

 public function getDoctrineConnection()

    {

        if (is_null($this->doctrineConnection)) {

            $driver = $this->getDoctrineDriver();
 ...

As far as I understood, this is an issue with the fact that now Backpack uses the doctrine abstraction to access the db. I'm happy to work on it, I'm just unsure on where I should start, because there seems to be no way to get hold of the driver object in mongodb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions