Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1537 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1537 Rev 1538
Línea 248... Línea 248...
248
                $hydrator = new ObjectPropertyHydrator();
248
                $hydrator = new ObjectPropertyHydrator();
249
                $candidate = new RecruitmentSelectionCandidate();
249
                $candidate = new RecruitmentSelectionCandidate();
250
                $hydrator->hydrate($dataPost, $candidate);
250
                $hydrator->hydrate($dataPost, $candidate);
Línea 251... Línea 251...
251
                
251
                
252
                $file = $candidate->file;
252
                $file = $candidate->file;
253
                $candidate->file = null;
253
                // $candidate->file = null;
254
                
254
 
255
                $candidate->company_id = $currentCompany->id;
255
                $candidate->company_id = $currentCompany->id;
Línea 256... Línea 256...
256
                $candidate->image = null;
256
                $candidate->image = null;
257
 
257
 
Línea 261... Línea 261...
261
                $candidate->selection_id = $vacancy->id;
261
                $candidate->selection_id = $vacancy->id;
262
                $candidate->status = 'a';
262
                $candidate->status = 'a';
Línea 263... Línea 263...
263
                
263
                
Línea 264... Línea -...
264
                $candidateMapper = RecruitmentSelectionCandidateMapper::getInstance($this->adapter);
-
 
265
 
-
 
266
                return new JsonModel([
-
 
267
                    'success' => false,
-
 
268
                    'data' => [
-
 
269
                        (array)$candidateMapper->insert($candidate),
-
 
270
                    ]
-
 
271
                ]);
264
                $candidateMapper = RecruitmentSelectionCandidateMapper::getInstance($this->adapter);
272
 
265
 
Línea 273... Línea 266...
273
                if($candidateMapper->insert($candidate)) {
266
                if($candidateMapper->insert($candidate)) {
274
                    // $candidate = $candidateMapper->fetchOne($candidate->id);
267
                    // $candidate = $candidateMapper->fetchOne($candidate->id);