Update class query

Automatically replace original join field by an array of joined field