doctrine2 - zendframework 2 table gateway And doctrine 2- is it possible to operate both systems at same time -
i using zendframework 2 . wonder if possible use both table gateway , doctrine 2 in same application.
below configuration. tried run noticed speed of application slowed down considrable.
i wondering if beucase there conflict between both applications or because have not configured properly.
global php file
return array( 'db' => array( 'driver' => 'pdo', 'dsn' => 'mysql:dbname=thetable;host=localhost', 'driver_options' => array( pdo::mysql_attr_init_command => 'set names \'utf8\'' ), ), 'service_manager' => array( 'factories' => array( 'zend\db\adapter\adapter' => 'zend\db\adapter\adapterservicefactory', ), ),
);
local php
return array( 'db' => array( 'username' => 'user', 'password' => 'password', ), 'doctrine' => array( 'connection' => array( 'orm_default' => array( 'driverclass' => 'doctrine\dbal\driver\pdomysql\driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'user' => 'user', 'password' => 'password', 'dbname' => 'thetable' ) ) ) ), );
Comments
Post a Comment