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