public function init() { if (!isset($this->ownerLinkTable, $this->className)) { throw new InvalidConfigException('"ownerLinkTable" and "className" attributes cannot be null'); } parent::init(); }