public function getTableRegistry()
    {
        if (is_null($this->_tableRegistry)) {
            $objectTypeClass = Yii::$app->classes['ObjectTypeRegistry'];
            $this->_tableRegistry = [];
            if ($objectTypeClass::tableExists()) {
                $om = $objectTypeClass::find()->all();
                $this->_tableRegistry = ArrayHelper::index($om, 'name');
            }
        }

        return $this->_tableRegistry;
    }