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