added orm

This commit is contained in:
2021-05-30 17:34:33 +02:00
parent 7f1aea6c8a
commit 914f19c043
15 changed files with 2626 additions and 160 deletions

9
.env
View File

@@ -17,3 +17,12 @@
APP_ENV=dev
APP_SECRET=cd0ae68f915f2a06b82007f2906e54e8
###< symfony/framework-bundle ###
###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###