This method retrieves an entity's parent.
Returns the parent entity if it exists, otherwise NULL is returned.