i would prefer to not call this $row, but $document. in PHPCR query, there is the notion of a query result RowInterface which is not what you have here (or it would not work at all if you had a Row here instead of the document)