-
-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathdoctrine.yaml
41 lines (37 loc) · 1.47 KB
/
doctrine.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
parameters:
# Adds a fallback DATABASE_URL if the env var is not set. This allows you
# to run cache:warmup even if your environment variables are not available
# yet. You should not need to change this value.
env(DATABASE_DRIVER): 'pdo_sqlite'
env(DATABASE_URL): ''
doctrine:
dbal:
charset: utf8mb4
url: '%env(resolve:DATABASE_URL)%'
# For SQLite
# driver: 'pdo_sqlite'
# server_version: '3.15'
# For MySQL
# driver: 'pdo_mysql'
# server_version: 5.7
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
Bolt:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'Bolt\Entity'
alias: App
dql:
string_functions:
JSON_EXTRACT: Bolt\Doctrine\Functions\JsonExtract
JSON_VALUE: Bolt\Doctrine\Functions\JsonValue
JSON_GET_TEXT: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Postgresql\JsonGetText
JSON_SEARCH: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonSearch
JSON_UNQUOTE: Bolt\Doctrine\Functions\JsonUnquote
CAST: Bolt\Doctrine\Query\Cast
numeric_functions:
RAND: Bolt\Doctrine\Functions\Rand