lexik/LexikMailerBundle

Rename Tables

mathewpeterson opened this issue · 2 comments

Is it possible to rename the tables? I've tried extending/overriding the bundle and change out the entities with my own, and over-rode the forms but it seems that it is not working properly.

I think it's not possible to only rename tables as the entities we provide are not mapped as a super class.

If you want to use your own entity you have to create a new one and implement Lexik\Bundle\MailerBundle\Model\EmailInterface, then you have to define this new entity in the bundle configuration:

lexik_mailer:
    classes:
        email_entity: 'My\Custom\Entity\Email'

That will only allow 1 table to be renamed. I just cloned the repo into my ./src directory and made the needed changes. Not sure what else I could do.