this is a bit of a shortcut. the clean way would be to define a custom repository for each type of content with phpcr-odm and have the repository build this query in a `getRecentlyPublished($limit)` method there.