@@ -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->getName())->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([ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | //$this->manager->persist($entity); |
136 | 136 | } else { |
137 | - $json = json_decode($this->request->getContent(), true); |
|
137 | + $json = json_decode($this->request->getContent(), true); |
|
138 | 138 | $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null; |
139 | 139 | if (!$extra_data) |
140 | 140 | return; |