Browse Source

change encoding

develop
Simon Vieille 5 months ago
parent
commit
c3473a4045
Signed by: deblan GPG Key ID: 03383D15A1D31745
  1. 5
      config/packages/doctrine.yaml
  2. 1
      src/Entity/Mail.php
  3. 1
      src/Entity/MailAttachment.php
  4. 1
      src/Entity/Mailing.php

5
config/packages/doctrine.yaml

@ -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
src/Entity/Mail.php

@ -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
src/Entity/MailAttachment.php

@ -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
src/Entity/Mailing.php

@ -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