255], [['color'], 'string', 'max' => 24], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'display_name' => 'Display Name', 'sort' => 'Sort', 'icon' => 'Icon', 'is_delete' => 'Is Delete', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', ]; } public function getPlugins() { return $this->hasMany(CorePlugin::class, [ 'name' => 'plugin_name' ])->via('pluginCatRels'); } public function getPluginCatRels() { return $this->hasMany(PluginCatRel::class, [ 'plugin_cat_name' => 'name', ]); } }