Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 4916 | Rev 4942 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4916 Rev 4918
Línea 321... Línea 321...
321
 
321
 
322
                $jobDescription = new SurveyJobDescription();
322
                $jobDescription = new SurveyJobDescription();
323
                $jobCategory = new SurveyJobCategory();
323
                $jobCategory = new SurveyJobCategory();
324
                $industry = new SurveyIndustry();
324
                $industry = new SurveyIndustry();
325
                $service = new SurveyService();
-
 
Línea 326... Línea 325...
326
                $hydrator->hydrate($dataPost, $vacancy);
325
                $service = new SurveyService();
327
 
326
 
-
 
327
                if($dataPost['job_description_id']){
328
                if($dataPost['job_description_id']){
328
                    $JobDescriptionSurveyId = $dataPost['job_description_id'];
329
                    $JobDescriptionSurveyId = $dataPost['job_description_id'];
329
                    $hydrator->hydrate($dataPost, $jobDescription);
330
                    $survey_id = $survey->id;
330
                    $survey_id = $survey->id;
Línea 331... Línea 331...
331
                    $surveyJobDescriptionMapper = SurveyJobDescriptionMapper::getInstance($this->adapter);
331
                    $surveyJobDescriptionMapper = SurveyJobDescriptionMapper::getInstance($this->adapter);
Línea 339... Línea 339...
339
                    }
339
                    }
340
                }
340
                }
Línea 341... Línea 341...
341
 
341
 
342
                if($dataPost['job_category_id']){
342
                if($dataPost['job_category_id']){
-
 
343
                    $JobCategorySurveyId = $dataPost['job_category_id'];
343
                    $JobCategorySurveyId = $dataPost['job_category_id'];
344
                    $hydrator->hydrate($dataPost, $jobCategory);
344
                    $survey_id = $survey->id;
345
                    $survey_id = $survey->id;
345
                    $surveyJobCategoryMapper = SurveyJobCategoryMapper::getInstance($this->adapter);
346
                    $surveyJobCategoryMapper = SurveyJobCategoryMapper::getInstance($this->adapter);
Línea 346... Línea 347...
346
                    $jobCategory = $surveyJobCategoryMapper->insert($JobCategorySurveyId, $survey_id);
347
                    $jobCategory = $surveyJobCategoryMapper->insert($JobCategorySurveyId, $survey_id);
Línea 353... Línea 354...
353
                    }
354
                    }
354
                }
355
                }
Línea 355... Línea 356...
355
 
356
 
356
                if($dataPost['industry_id']){
357
                if($dataPost['industry_id']){
-
 
358
                    $industrySurveyId = $dataPost['industry_id'];
357
                    $industrySurveyId = $dataPost['industry_id'];
359
                    $hydrator->hydrate($dataPost, $industry);
358
                    $survey_id = $survey->id;
360
                    $survey_id = $survey->id;
359
                    $surveyIndustryMapper = SurveyIndustryMapper::getInstance($this->adapter);
361
                    $surveyIndustryMapper = SurveyIndustryMapper::getInstance($this->adapter);
Línea 360... Línea 362...
360
                    $industry = $surveyIndustryMapper->insert($industrySurveyId, $survey_id);
362
                    $industry = $surveyIndustryMapper->insert($industrySurveyId, $survey_id);
Línea 367... Línea 369...
367
                    }
369
                    }
368
                }
370
                }
Línea 369... Línea 371...
369
                
371
                
370
                if($dataPost['service_id']){
372
                if($dataPost['service_id']){
-
 
373
                    $serviceSurveyId = $dataPost['service_id'];
371
                    $serviceSurveyId = $dataPost['service_id'];
374
                    $hydrator->hydrate($dataPost, $service);
372
                    $survey_id = $survey->id;
375
                    $survey_id = $survey->id;
373
                    $surveyServiceMapper = SurveyServiceMapper::getInstance($this->adapter);
376
                    $surveyServiceMapper = SurveyServiceMapper::getInstance($this->adapter);
Línea 374... Línea 377...
374
                    $service = $surveyServiceMapper->insert($serviceSurveyId, $survey_id);
377
                    $service = $surveyServiceMapper->insert($serviceSurveyId, $survey_id);