@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | $class = $this->getEntityName($entity); |
47 | 47 | |
48 | - $extraData = $this->getEntityByExtraData($extraFields, $code, $entity); |
|
48 | + $extraData = $this->getEntityByExtraData($extraFields, $code, $entity); |
|
49 | 49 | if (!$extraData) { |
50 | 50 | $extraData = new ExtraData(); |
51 | 51 | $extraData->setEntityId($entityId); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | return $this->manager->getRepository($class::class)->find($extraData->getEntityId()); |
60 | 60 | } |
61 | 61 | |
62 | - public function discoveryExtraFields(string $fieldName, string $context, ?string $configs = '{}', ?string $fieldType = 'text', ?bool $required = false): ExtraFields |
|
62 | + public function discoveryExtraFields(string $fieldName, string $context, ?string $configs = '{}', ?string $fieldType = 'text', ?bool $required = false): ExtraFields |
|
63 | 63 | { |
64 | 64 | |
65 | 65 | $extraFields = $this->manager->getRepository(ExtraFields::class)->findOneBy([ |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | //$this->manager->persist($entity); |
134 | 134 | } else { |
135 | - $json = json_decode($this->request->getContent(), true); |
|
135 | + $json = json_decode($this->request->getContent(), true); |
|
136 | 136 | $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null; |
137 | 137 | if (!$extra_data) |
138 | 138 | return; |