public function init() { if (!isset($this->modelField)) { throw new InvalidConfigException('Must have a modelField set'); } if (!isset($this->modelKey)) { throw new InvalidConfigException('Must have a modelKey set'); } parent::init(); }