Doctrine with zf3 cache

Martin Zellerdoctrine, php, zf3 Leave a Comment

That’s the way how to use Zend Cache with Doctrine in Zend Framework 3. First do all doctrine settings and define a cache in your global.php: ‘doctrine’ => [ ‘connection’ => [ // default connection name ‘orm_default’ => [ ‘driverClass’ => ‘Doctrine\DBAL\Driver\PDOMySql\Driver’, ‘params’ => [ ‘host’ => ‘localhost’, ‘port’ => 3306, ‘user’ => ‘xxx’, ‘password’ => ‘xxx’, ‘dbname’ => ‘xxx’, …