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