facile-it / zf1-dbal-adapter
ZF1 Doctrine DBAL Adapter for MySql
Installs: 12 121
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- doctrine/dbal: ^2.0
Requires (Dev)
- zendframework/zendframework1: dev-master#f95e971b3305744909d3ccb061182d00f1944a46 as 1.12.21
This package is not auto-updated.
Last update: 2023-02-05 20:07:01 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);