| Línea 404... |
Línea 404... |
| 404 |
]);
|
404 |
]);
|
| 405 |
}
|
405 |
}
|
| 406 |
} else if ($request->isGet()) {
|
406 |
} else if ($request->isGet()) {
|
| 407 |
$hydrator = new ObjectPropertyHydrator();
|
407 |
$hydrator = new ObjectPropertyHydrator();
|
| Línea -... |
Línea 408... |
| - |
|
408 |
|
| - |
|
409 |
$locationMapper = LocationMapper::getInstance($this->adapter);
|
| - |
|
410 |
$location = $locationMapper->fetchOne($recruitmentCandidate->location_id);
|
| 408 |
|
411 |
|
| 409 |
$jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
|
412 |
$jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
|
| 410 |
$jobDescription = $jobDescriptionMapper->fetchOne($recruitmentCandidate->job_description_id);
|
413 |
$jobDescription = $jobDescriptionMapper->fetchOne($recruitmentCandidate->job_description_id);
|
| 411 |
if (!$jobDescription) {
|
414 |
if (!$jobDescription) {
|
| 412 |
$data = [
|
415 |
$data = [
|
| Línea 422... |
Línea 425... |
| 422 |
'data' => [
|
425 |
'data' => [
|
| 423 |
'id' => $recruitmentCandidate->uuid,
|
426 |
'id' => $recruitmentCandidate->uuid,
|
| 424 |
'name' => $recruitmentCandidate->name,
|
427 |
'name' => $recruitmentCandidate->name,
|
| 425 |
'company'=>$currentCompany->id,
|
428 |
'company'=>$currentCompany->id,
|
| 426 |
'job_description_id' => $recruitmentCandidate->job_description_id,
|
429 |
'job_description_id' => $recruitmentCandidate->job_description_id,
|
| 427 |
'location_search' => $recruitmentCandidate->location_id,
|
430 |
'location_search' => $location->formatted_address,
|
| 428 |
'job_category_id' => $recruitmentCandidate->job_category_id,
|
431 |
'job_category_id' => $recruitmentCandidate->job_category_id,
|
| 429 |
'description' => $recruitmentCandidate->description,
|
432 |
'description' => $recruitmentCandidate->description,
|
| 430 |
'industry' => $recruitmentCandidate->industry_id,
|
433 |
'industry_id' => $recruitmentCandidate->industry_id,
|
| 431 |
'last_date' => $recruitmentCandidate->last_date,
|
434 |
'last_date' => $recruitmentCandidate->last_date,
|
| 432 |
'status' => $recruitmentCandidate->status,
|
435 |
'status' => $recruitmentCandidate->status,
|
| 433 |
// 'content' => $recruitmentCandidate->content ? json_decode($recruitmentCandidate->content) : [],
|
436 |
// 'content' => $recruitmentCandidate->content ? json_decode($recruitmentCandidate->content) : [],
|
| 434 |
]
|
437 |
]
|
| 435 |
];
|
438 |
];
|