Are there some way to transform a model property value before encode the model to JSON ?
For example, i have the RatePlans with two properties created_at and updated_at. In the database those fields are datetime (Y-m-d H:i:s).
But, i need return those fields with ISO 8601 format. So i tried with a getter, getCreatedAt() for example, but doen't work.
How i can do this ?