# Content

Doctrine (Beberlei/DoctrineExtensions (opens new window)) extension for Nette Framework

# Setup

Install package

composer require nettrine/extensions-beberlei
1

Register extension

extensions:
    nettrine.extensions.beberlei: Nettrine\Extensions\Beberlei\DI\BeberleiBehaviorExtension
1
2

# Configuration

Specify the same driver as for the Doctrine DBAL connection, all of beberlei/DoctrineExtensions (opens new window) custom DQL functions for the given driver will be registered.

nettrine.extensions.beberlei:
    driver: mysql
    # mysql - 'mysql', 'mysql2', 'pdo_mysql'
    # oracle - 'oci8', 'pdo_oci'
    # sqlite - 'sqlite', 'sqlite3', 'pdo_sqlite'
    # postgre - 'pgsql', 'postgres', 'postgresql', 'pdo_pgsql'
1
2
3
4
5
6