link to object parent; can't use "parent" field so link to class

We used to be able to use object.parent() but it turns out that
documents actually have an optional parent field which seems to be
something else.
This way we call Entity.collection() or File.entity().