Let’s say we’ve got some calculated field in our find() method, something like SUM() or COUNT() or maybe AVG().
For the sake of example let’s do something simplistic, like:
Here’s another trick with Set::merge()…
Let’s say we’ve defined some basic validation rules in our Profile model, something like: