We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64686ea commit f004ceaCopy full SHA for f004cea
src/DoctrineModule/Validator/UniqueObject.php
@@ -144,7 +144,7 @@ protected function getExpectedIdentifiers($context = null)
144
145
$result = [];
146
foreach ($this->getIdentifiers() as $identifierField) {
147
- if (! isset($context[$identifierField])) {
+ if (! array_key_exists($identifierField, $context)) {
148
throw new Exception\RuntimeException(\sprintf('Expected context to contain %s', $identifierField));
149
}
150
0 commit comments