Scenario: I have two entities. Product & ProductGroup. Product has many to one relation to ProductGroup. I soft delete the ProductGroup. Then I try to call getProductGroup on a product which has a product group which was soft deleted.
Problem: instead of expected null result I get an "Message: Entity was not found." exception message.
$productGroupName = $product->getProductGroup() !== null ? $product->getProductGroup()->getName() : '';