Refresh the model after updating
This commit is contained in:
parent
f44f363806
commit
32a9fbe35a
|
|
@ -58,7 +58,10 @@ class Update
|
||||||
|
|
||||||
run_callbacks($schema->getListeners('updated'), [&$this->model, $context]);
|
run_callbacks($schema->getListeners('updated'), [&$this->model, $context]);
|
||||||
|
|
||||||
return (new Show($this->api, $this->resource, $this->model))
|
$adapter = $this->resource->getAdapter();
|
||||||
|
$freshModel = $this->findResource($this->resource, $adapter->getId($this->model), $context);
|
||||||
|
|
||||||
|
return (new Show($this->api, $this->resource, $freshModel))
|
||||||
->handle($context);
|
->handle($context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue