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

# Content

# Setup

Install package

composer require nettrine/extensions-oroinc
1

Register extension

extensions:
    nettrine.extensions.oroinc: Nettrine\Extensions\Oroinc\DI\OroincBehaviorExtension
1
2

# Configuration

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

nettrine.extensions.oroinc:
    driver: mysql
    # mysql - 'mysql', 'mysql2', 'pdo_mysql'
    # postgre - 'pgsql', 'postgres', 'postgresql', 'pdo_pgsql'
1
2
3
4

Field types (opens new window) MoneyType, PercentType, ObjectType and ArrayType are always registered to your Connection.