79449070

Date: 2025-02-18 17:09:31
Score: 7.5 🚩
Natty: 5.5
Report link

I'm using version 7.4.5.

As for the colors example, I think I understand what is written here in the answer (and in the documentation), but I can't figure out how to do it...

Let's suppose we have a simple "Car" entity with an "id" field and a "color" field. I want to show in the form a combo loaded with some colors added programmatically (red, yellow and so on..)

My question is: "where" should I write the getView().addValidValue() statements? Directly in the entity class "Car"?

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Lorenzo Morini