Bundle to store your sent mail
composer require nuxia/mail-storage-bundle: "dev-master"
# MailEntry.orm.ymlMyApp\Entity\MailEntry:
type: "entity"table: "your__mail_storage_table"id:
id:
type: "string"length: "32"generator:
strategy: "NONE"indexes:
mle_id_i:
columns: "id"mle_object_i:
columns: "object"mle_object_id_i:
columns: "object_id"mle_reference_i:
columns: "reference"mle_language_i:
columns: "language"mle_subject_i:
columns: "subject"mle_status_i:
columns: "status"mle_created_att_i:
columns: "created_at"mle_sent_at_i:
columns: "sent_at"<?php//MyApp\Entity\MailEntry.phpclass MailEntry extends \Nuxia\MailStorageBundle\Entity\AbstractMailEntry {
//Some application logic
}Override the container parameter nuxia.mail_storage.mail_entry.class using à compiler pass or a service file.
# myapp/service.ymlparameters:
nuxia.mail_storage.mail_entry.class: MyApp\Entity\MailEntry