change encoding

This commit is contained in:
Simon Vieille 2020-12-21 15:00:31 +01:00
parent a5eaec3544
commit c3473a4045
Signed by: deblan
GPG Key ID: 03383D15A1D31745
4 changed files with 7 additions and 1 deletions

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

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

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
{

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
*/