I have a table with a field vat_free. So, my model was created with a property $vat_free. Its value can be 0 or 1 .
I want my view to show No or Yes instead of 0 or 1 . I can do this by creating a getter, for example getVatFree(), but it seems like a messy solution, because then I will have two properties in one field, although it will work for different purposes.
So how can I use only the original property $vat_free? Can't I change its getter?
source
share