Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Add support for user_type enum in Doctrine (MbinOrg#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 authored Oct 23, 2023
1 parent 0d91e32 commit b3deaa0
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
dbal:
url: "%env(resolve:DATABASE_URL)%"
mapping_types:
user_type: string

orm:
dql:
string_functions:
JSONB_CONTAINS: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Postgresql\JsonbContains
auto_generate_proxy_classes: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
is_bundle: false
type: attribute
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
second_level_cache:
enabled: true
region_cache_driver:
type: pool
pool: doctrine.second_level_cache_pool
orm:
dql:
string_functions:
JSONB_CONTAINS: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Postgresql\JsonbContains
auto_generate_proxy_classes: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
is_bundle: false
type: attribute
dir: "%kernel.project_dir%/src/Entity"
prefix: 'App\Entity'
alias: App
second_level_cache:
enabled: true
region_cache_driver:
type: pool
pool: doctrine.second_level_cache_pool

0 comments on commit b3deaa0

Please sign in to comment.