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