/** * @return \yii\db\ActiveQuery */ public function getTools() { return $this->hasMany(ViewerTabsTools::className(), ['tabs_id' => 'id']); }