Open Gregor2203 opened 2 years ago
Just had the same issue. Found that the BlogBundle has a categories
element with an ArticleType
type that uses an EntityType with the Odiseo\BlogBundle\Model\ArticleCategory
class.
I think the easiest way is to create an FormExtension
that replaces the categories
field, where you can use your own ArticleCategory
class in the class
option.
Hello I extended class ArticleCategory and it works, but if I trying to add new article got error "Call to a member function get() on null". This $this->translations, initialised in constructor (TranslatableTrait), return NULL. It's weird.
My model:
odiseo_blog.yaml
Thanks in advance for any help!