Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
$variant = $em->getPartialReference('Entity\Variant', -1);
echo $variant->getVariantId();
prints -1. Is it an expected behavior or a bug? Shouldn't a check be made to prevent creating new instances for ids that do not exist?
the use case was partially removed by proxy objects now being capable of returning the id without querying.