Support for multiparameter attribute assignment on virtual attribute writers


I’ve worked on two projects now where I’ve had to use multiparameter assignment on ‘virtual’ attributes (i.e., non database columns/aggregates). A little Googling led me to other people who have been having the same issue:

From the Lighthouse ticket:

“Currently, using multiparameter assignment on a non-column or aggregation throws an error. Since the existing implementation used the reflection to determine whether to create a Date or Time instance to send to the writer, and there’s no easy way to infer the desired datatype from the method name or arity, I figured that sending a Time instance for virtual attributes is best in all cases (since a time inherently contains a date.)”

Ticket with patch: