I'm only using the DBAL and would like to add an external function, more
precisely this: https://github.com/IAkumaI/doctrine-functions
I do not know where to declare the function as the developer tells me to
use the instance of ORM and I'm using DBAL
$config = new \Doctrine\ORM\Configuration();
$config->addCustomDatetimeFunction('instr', 'IAkumaI\DQL\Str\Instr');
but my instance is directly from DBAL
see part of my constructor:
...
$config = new \Doctrine\DBAL\Configuration();
$connectionParams = [
'dbname' => $cBanco,
'user' => $cUsuario,
'password' => $cSenha,
'host' => $cHost,
'driver' => $cDriver,
'charset' => 'utf8',
'wrapperClass' => 'Doctrine\DBAL\Portability\Connection',
'portability' =>
\Doctrine\DBAL\Portability\Connection::PORTABILITY_ALL,
'fetch_case' => \PDO::CASE_LOWER,
'driverOptions' => [
1002 => 'SET NAMES utf8']
];
self::$link[$banco] =
\Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
...
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.