Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1577 Rev 1578
Línea 345... Línea 345...
345
 
345
 
346
                if (!$vacancy->status) {
346
                if (!$vacancy->status) {
347
                    $vacancy->status = RecruitmentSelectionVacancy::STATUS_INACTIVE;
347
                    $vacancy->status = RecruitmentSelectionVacancy::STATUS_INACTIVE;
Línea -... Línea 348...
-
 
348
                }
-
 
349
 
-
 
350
                $locationMapper = LocationMapper::getInstance($this->adapter);
-
 
351
                $location = $locationMapper->fetchOne($vacancy->location_id);
-
 
352
                $hydrator->hydrate($dataPost, $location);
348
                }
353
                $locationMapper->update($location);
349
 
354
 
350
                $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
355
                $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
Línea 351... Línea 356...
351
                $jobDescription = $jobDescriptionMapper->fetchOneByUuid($dataPost['job_description_id']);
356
                $jobDescription = $jobDescriptionMapper->fetchOneByUuid($dataPost['job_description_id']);
Línea 359... Línea 364...
359
                $industry = $industryMapper->fetchOneByUuid($dataPost['industry_id']);
364
                $industry = $industryMapper->fetchOneByUuid($dataPost['industry_id']);
360
                $vacancy->industry_id = $industry->id;
365
                $vacancy->industry_id = $industry->id;
Línea 361... Línea 366...
361
 
366
 
362
                $vacancy->job_description_id = $jobDescription->id;
367
                $vacancy->job_description_id = $jobDescription->id;
363
                $vacancy->job_category_id = $jobCategory->id;
368
                $vacancy->job_category_id = $jobCategory->id;
Línea 364... Línea 369...
364
                $vacancy->industry = $industry->id;
369
                $vacancy->industry_id = $industry->id;
365
 
-
 
366
                $result = $recruitmentSelectionVacancyMapper->update($vacancy);
-
 
367
                return new JsonModel([
-
 
368
                    'success'=> false,
-
 
369
                    'data' => [
-
 
370
                        $request->getPost()->toArray(),
-
 
371
                        $dataPost,
-
 
372
                        $vacancy,  
-
 
373
                        $result,
-
 
-
 
370
 
Línea 374... Línea 371...
374
                    ]
371
                $result = $recruitmentSelectionVacancyMapper->update($vacancy);
375
                ]);
372
               
376
 
373
 
377
                if ($result) {
374
                if ($result) {