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