skip to Main Content

Symfony Translatable Enum – PHP

My supplier entity has enum property notifyType. Any idea how translate the enum this way? {{ supplier.notifyType|trans }} Unfortunately, use __toString method in Enum is not possible. // error - Enum may not include __toString public function __toString(): string {…

VIEW QUESTION
Back To Top
Search