facile-it/zf1-dbal-adapter

ZF1 Doctrine DBAL Adapter for MySql

0.2.0 2020-05-08 13:47 UTC

This package is not auto-updated.

Last update: 2021-04-24 17:32:34 UTC


README

A ZF1 Zend_Db adapter to help migration to Doctrine DBAL on legacy ZF1 projects.

How to use

$connection = $container->get(\Doctrine\DBAL\Connection::class); // Get your DBAL connection
$adapter = new Facile\ZF1DbAdapter\Mysql\MysqlDBALAdapter($connection);

Zend_Db_Table::setDefaultAdapter($adapter);