protected function getCachedWidgetModel($className, $idKey = null, $many = false, $options = []) { $relation = \nitm\helpers\Helper::getCallerName(); $options['construct'] = isset($options['construct']) ? $options['construct'] : ['parent_id' => $this->getId(), 'parent_type' => $this->isWhat()]; $idKey = is_null($idKey) ? ['getId', 'isWhat'] : $idKey; return $this->getCachedRelation($idKey, $className, $options, $many, $relation); }