Browse Source

change encoding

develop
Simon Vieille 1 month ago
parent
commit
c3473a4045
Signed by: deblan GPG Key ID: 03383D15A1D31745
4 changed files with 7 additions and 1 deletions
  1. +4
    -1
      config/packages/doctrine.yaml
  2. +1
    -0
      src/Entity/Mail.php
  3. +1
    -0
      src/Entity/MailAttachment.php
  4. +1
    -0
      src/Entity/Mailing.php

+ 4
- 1
config/packages/doctrine.yaml View File

@ -4,7 +4,10 @@ doctrine:
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
charset: UTF8
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
#server_version: '5.7'
orm:
auto_generate_proxy_classes: true

+ 1
- 0
src/Entity/Mail.php View File

@ -10,6 +10,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MailRepository::class)
* @ORM\Table("mail", options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"})
* @ORM\HasLifecycleCallbacks
*/
class Mail

+ 1
- 0
src/Entity/MailAttachment.php View File

@ -7,6 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MailAttachmentRepository::class)
* @ORM\Table("mail_attachment", options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"})
*/
class MailAttachment
{

+ 1
- 0
src/Entity/Mailing.php View File

@ -10,6 +10,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MailingRepository::class)
* @ORM\Table("mailing", options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"})
* @ORM\HasLifecycleCallbacks
*/

Loading…
Cancel
Save