@@ -62,7 +62,7 @@ |
||
62 | 62 | { |
63 | 63 | $resource = $this->json->setMeta($meta)->getResource($this->formRequest, $data, $this->entity); |
64 | 64 | |
65 | - return $this->getResponse(Json::prepareSerializedData($resource, $this->sqlOptions->getData())); |
|
65 | + return $this->getResponse(Json::prepareSerializedData($resource, $this->sqlOptions->getData())); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | $relEntity = ucfirst($relation); |
66 | - $formRequestEntity = $this->getFormRequestEntity(conf::getModuleName(), $relEntity); |
|
66 | + $formRequestEntity = $this->getFormRequestEntity(conf::getModuleName(), $relEntity); |
|
67 | 67 | $relFormRequest = new $formRequestEntity(); |
68 | 68 | |
69 | 69 | $this->response->setFormRequest($relFormRequest); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function createRelations(Request $request, $id, string $relation) : Response |
84 | 84 | { |
85 | - $model = $this->presetRelations($request, $id, $relation); |
|
85 | + $model = $this->presetRelations($request, $id, $relation); |
|
86 | 86 | |
87 | 87 | return $this->response->get($model, []); |
88 | 88 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function updateRelations(Request $request, $id, string $relation) : Response |
99 | 99 | { |
100 | - $model = $this->presetRelations($request, $id, $relation); |
|
100 | + $model = $this->presetRelations($request, $id, $relation); |
|
101 | 101 | |
102 | 102 | return $this->response->get($model, []); |
103 | 103 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | protected function setEntities() : void |
67 | 67 | { |
68 | 68 | $this->entity = Classes::cutEntity(Classes::getObjectName($this), DefaultInterface::CONTROLLER_POSTFIX); |
69 | - $formRequestEntity = $this->getFormRequestEntity(conf::getModuleName(), $this->entity); |
|
69 | + $formRequestEntity = $this->getFormRequestEntity(conf::getModuleName(), $this->entity); |
|
70 | 70 | |
71 | 71 | $this->formRequest = new $formRequestEntity(); |
72 | 72 | $this->props = get_object_vars($this->formRequest); |