Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 4969 Rev 4974
Línea 323... Línea 323...
323
                $jobCategory = new SurveyJobCategory();
323
                $jobCategory = new SurveyJobCategory();
324
                $industry = new SurveyIndustry();
324
                $industry = new SurveyIndustry();
325
                $service = new SurveyService();
325
                $service = new SurveyService();
Línea 326... Línea 326...
326
 
326
 
-
 
327
                if($dataPost['job_description_id']){
327
                if($dataPost['job_description_id']){
328
                    $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
328
                    $JobDescriptionSurveyId = $dataPost['job_description_id'];
329
                    $JobDescriptionSurveyId = $jobDescriptionMapper->fetchOneByUuid($dataPost['job_description_id']);
329
                    $hydrator->hydrate($dataPost, $jobDescription);
330
                    $hydrator->hydrate($dataPost, $JobDescriptionSurveyId);
330
                    $survey_id = $survey->id;
331
                    $survey_id = $survey->id;
331
                    $surveyJobDescriptionMapper = SurveyJobDescriptionMapper::getInstance($this->adapter);
332
                    $surveyJobDescriptionMapper = SurveyJobDescriptionMapper::getInstance($this->adapter);
332
                    $record = [
333
                    $record = [
333
                        'survey_id' => $survey_id,
334
                        'survey_id' => $survey_id,
Línea 342... Línea 343...
342
                        ];
343
                        ];
343
                    }
344
                    }
344
                }
345
                }
Línea 345... Línea 346...
345
 
346
 
-
 
347
                if($dataPost['job_category_id']){
346
                if($dataPost['job_category_id']){
348
                    $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
347
                    $JobCategorySurveyId = $dataPost['job_category_id'];
349
                    $JobCategorySurveyId = $jobCategoryMapper->fetchOneByUuid( $dataPost['job_category_id']);
348
                    $hydrator->hydrate($dataPost, $jobCategory);
350
                    $hydrator->hydrate($dataPost, $JobCategorySurveyId);
349
                    $survey_id = $survey->id;
351
                    $survey_id = $survey->id;
350
                    $surveyJobCategoryMapper = SurveyJobCategoryMapper::getInstance($this->adapter);
352
                    $surveyJobCategoryMapper = SurveyJobCategoryMapper::getInstance($this->adapter);
351
                    $record = [
353
                    $record = [
352
                        'survey_id' => $survey_id,
354
                        'survey_id' => $survey_id,
Línea 361... Línea 363...
361
                        ];
363
                        ];
362
                    }
364
                    }
363
                }
365
                }
Línea 364... Línea 366...
364
 
366
 
-
 
367
                if($dataPost['industry_id']){
365
                if($dataPost['industry_id']){
368
                    $industryMapper = IndustryMapper::getInstance($this->adapter);
366
                    $industrySurveyId = $dataPost['industry_id'];
369
                    $industrySurveyId = $industryMapper->fetchOneByUuid($dataPost['industry_id']);
367
                    $hydrator->hydrate($dataPost, $industry);
370
                    $hydrator->hydrate($dataPost, $industrySurveyId);
368
                    $survey_id = $survey->id;
371
                    $survey_id = $survey->id;
369
                    $surveyIndustryMapper = SurveyIndustryMapper::getInstance($this->adapter);
372
                    $surveyIndustryMapper = SurveyIndustryMapper::getInstance($this->adapter);
370
                    $record = [
373
                    $record = [
371
                        'survey_id' => $survey_id,
374
                        'survey_id' => $survey_id,