vasildakov/expressive-doctrine-orm

Doctrine for Zend-Expressive

0.1 2016-05-04 12:59 UTC

This package is not auto-updated.

Last update: 2024-12-16 13:52:28 UTC


README

Build Status Coverage Status Latest Stable Version License

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

composer require vasildakov/expressive-doctrine-orm

Entities settings

Connection settings

<?php
return [
    'doctrine' => [
        'connection' => [
            // default connection
            'orm_default' => [
                'driverClass' => Doctrine\DBAL\Driver\PDOMySql\Driver::class,
                'params' => [
                    'driver'   => 'pdo_mysql',
                    'host'     => '127.0.0.1',
                    'port'     => '3306',
                    'dbname'   => 'database',
                    'user'     => 'username',
                    'password' => 'password',
                    'charset'  => 'UTF8',
                ],
            ],
        ],
    ],
];