unfortunately, the ClassMetadata forces this behaviour: https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php#L173

maybe we would even have to return the empty array in case the identifier is mapped but has no value yet?