now using \Nos\Orm\Query instead of query to make use of extended functions