Skip to content

Instantly share code, notes, and snippets.

@eltomato89
Created October 21, 2019 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eltomato89/e8930a519f1ed1bf7fbce74ef4c6025f to your computer and use it in GitHub Desktop.
Save eltomato89/e8930a519f1ed1bf7fbce74ef4c6025f to your computer and use it in GitHub Desktop.
doctrine:
dbal:
driver: pdo_mysql
host: '%env(DATABASE_HOST)%'
port: '%env(DATABASE_PORT)%'
dbname: '%env(DATABASE_NAME)%'
user: '%env(DATABASE_USER)%'
password: '%env(DATABASE_PASSWORD)%'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
filters:
gedmo_softdeleteable:
class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
enabled: true
dql:
string_functions:
JSON_EXTRACT: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonExtract
JSON_SET: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonSet
JSON_REMOVE: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonRemove
JSON_UNQUOTE: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonUnquote
CAST: Oro\ORM\Query\AST\Functions\Cast
stof_doctrine_extensions:
default_locale: en
orm:
default:
softdeleteable: true
timestampable: true
loggable: true
class:
loggable: UniteCMS\CoreBundle\Subscriber\LoggableListener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment