/** * @return \yii\db\ActiveQuery */ public function getIdPosto() { return $this->hasOne(PostoAbastecimento::className(), ['id' => 'id_posto']); }