|
@@ -46,7 +46,7 @@ |
|
|
block discarded – undo |
|
46
|
46
|
* no reason to set or update an identifier. For the case where an identifier |
|
47
|
47
|
* should be set or updated, this facotry is not the correct solution. |
|
48
|
48
|
*/ |
|
49
|
|
- if (! empty($optionalFields) || ! empty($requiredFields)) { |
|
|
49
|
+ if (!empty($optionalFields) || !empty($requiredFields)) { |
|
50
|
50
|
// Include field as optional |
|
51
|
51
|
if (in_array($fieldName, $optionalFields) || $optionalFields === ['*']) { |
|
52
|
52
|
if ($optionalFields === ['*'] && $this->entityManager->getClassMetadata($id)->isIdentifier($fieldName)) { |
Please login to merge, or discard this patch.