<?php

namespace Application;

use Ainias\Core\Connections\MyConnection;
use Application\DoctrineExtensions\CharLength;
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;

return array(
    'doctrine' => array(
        'driver' => array(
            'orm_default' => array(
                'drivers' => array(
                    __NAMESPACE__ . '\Model' => 'entities_default',
                ),
            ),
            'entities_default' => array(
                'paths' => array(
                    __DIR__ . '/../src/Model',
                )
            )
        ),
        'configuration' => [
            'orm_default' => [
                'numeric_functions' => [
                    'CHAR_LENGTH' => CharLength::class,
                ],
            ],
        ],
    ),
);
