harentius / blog-bundle

Symfony Bundle for adding simple blog functionality to existing or new Symfony project.
MIT License
19 stars 7 forks source link

Find way to use inheritance instead of dummy CommonChangeableFieldsEntityTrait #2

Closed harentius closed 4 years ago

harentius commented 6 years ago

sonata-project/translation-bundle can't resolve translations properly when translatable fields placed in AbstractPost class. So CommonChangeableFieldsEntityTrait was used. It is not seems to be very bad idea to use traits and interface for this case, but because Pages and Articles connected with relation rather "is-a" than "has an", it would be grateful to find solution for this.

harentius commented 4 years ago

Fixed issue with translations and removed dummy inheritance