Add support for partially loaded entities.

See https://sprint.ly/product/15350/item/288