/** * @return \yii\db\ActiveQuery */ public function getTerceiNome() { return $this->hasOne(Terceirizada::className(), ['nome' => 'tercei_nome']); }