Remove column by doctrine mapping inheritance

1.6k views Asked by At

What I want to do is to optimize my database by removing unnecessary fields from ProductTable.

My application is based on Sonata E-commerce. I want to remove the "shortDescription" field from the Product entity. Mapping was defined in vendor so i can't easily remove the field.

I tried:

       <attribute-override name="rawShortDescription">
            <field />
        </attribute-override>

And it doesnt work.

In doctrine documentation, it is written that there is no possible way to override column type. Does that mean that I can't remove field?

Is it possible to remove field defined in vendor?

0

There are 0 answers