kafoso / doctrine-firebird-driver

Firebird driver for the Doctrine DBAL/ORM
MIT License
14 stars 16 forks source link

pdo_firebird #14

Closed BentBr closed 10 months ago

BentBr commented 10 months ago

Hey Folks!

I'm trying to use the fork of this repo: https://github.com/Ambacia-consulting/doctrine-firebird-driver

I'm using symfony 5.4 with php8.1 (or later if I'm able to upgrade any further...). Problem is that I'm alway getting an error and parameter injection for some reason does not work.

So we have switch to pdo_firebase as interbase / ibase must be installed on our own - which is not feasible in lookout for our hosting...

Error Too few arguments to function IST\DoctrineFirebirdDriver\Driver\AbstractFirebirdInterbaseDriver::__construct(), 0 passed in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php on line 291 and exactly 1 expected

services.yaml

IST\DoctrineFirebirdDriver\Driver\AbstractFirebirdInterbaseDriver:
    arguments:
        $configuration: '@doctrine.dbal.firebird_connection.configuration'

App\Service\FirebirdService:
    arguments:
        $db: '@doctrine.dbal.firebird_connection'

Anyone a quick guess?

Best, Bent

BentBr commented 10 months ago

I just saw that even though the author claimed having shifted to pdo_firebird... it's using ibase_connect and similar functions. This shouldn't be the case - right?

I'm somewhat confuse :upside_down_face:

BentBr commented 10 months ago

hint for the next one :see_no_evil: -> dev-master branch

composer.json


  "repositories": [
    {
      "url": "https://github.com/Ambacia-consulting/doctrine-firebird-driver/tree/master",
      "type": "git"
    }
  ],

...

    "kafoso/doctrine-firebird-driver": "dev-master",