Skip to content

Commit

Permalink
updated user table + doctrine conf
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxandreOgeret committed Apr 25, 2019
1 parent 5f7812b commit fe71d30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ parameters:
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
driver: 'pdo_pgsql'
server_version: '10'
charset: utf8
default_table_options:
charset: utf8mb4
collate: utf8mb4_bin
charset: utf8
collate: en_US.UTF-8

# With Symfony 3.3, remove the `resolve:` prefix
url: '%env(resolve:DATABASE_URL)%'
Expand All @@ -27,4 +27,4 @@ doctrine:
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
alias: App
2 changes: 1 addition & 1 deletion src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/**
* @ORM\Entity(repositoryClass="App\Repository\UserRepository")
* @ORM\Table(name="user")
* @ORM\Table(name="app_user")
* @UniqueEntity(fields="email", message="Email is already taken")
* @UniqueEntity(fields="username", message="Username is already taken")
*/
Expand Down

0 comments on commit fe71d30

Please sign in to comment.