in phpcr there is nt:folder which we also have a document class for in phpcr-odm