I have the query down below, but it doesn\'t work unless I removed ->grouBy(\'type_id\').
There is a very basic one-to-many relation between assets and publishings