/** * {@inheritDoc} */ public function onPreExecute($request) { $this->stackLevel++; if (false == $request instanceof ModelAggregateInterface) { return; } if ($request->getModel() instanceof Identificator) { /** @var Identificator $identificator */ $identificator = $request->getModel(); if (false == ($model = $this->storage->findModelByIdentificator($identificator))) { return; } $request->setModel($model); } $this->scheduleForUpdateIfSupported($request->getModel()); }