Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6750 Rev 6751
Línea 842... Línea 842...
842
                                $record->job_description_id = $jobDescription->id;
842
                                $record->job_description_id = $jobDescription->id;
843
                                $record->survey_id = $survey->id;
843
                                $record->survey_id = $survey->id;
Línea 844... Línea 844...
844
 
844
 
845
                            
845
                            
846
 
846
 
847
                                $result = $surveyJobDescriptionMapper->update($record);
847
                                $result = $surveyJobDescriptionMapper->insert($record);
Línea 848... Línea 848...
848
                                $ok = $ok && $result;
848
                                $ok = $ok && $result;
Línea 883... Línea 883...
883
                                $record = new SurveySkill();
883
                                $record = new SurveySkill();
884
                                $record->skill_id = $skill->id;
884
                                $record->skill_id = $skill->id;
885
                                $record->survey_id = $survey->id;
885
                                $record->survey_id = $survey->id;
Línea 886... Línea 886...
886
 
886
 
887
 
887
 
888
                                $result = $surveySkillMapper->update($record);
888
                                $result = $surveySkillMapper->insert($record);
889
                                $ok = $ok && $result;
889
                                $ok = $ok && $result;
Línea 890... Línea 890...
890
                            // }
890
                            // }
Línea 925... Línea 925...
925
                                 $record->industry_id = $industry->id;
925
                                 $record->industry_id = $industry->id;
926
                                 $record->survey_id = $survey->id;
926
                                 $record->survey_id = $survey->id;
Línea 927... Línea 927...
927
 
927
 
928
                            
928
                            
929
 
929
 
930
                                 $result = $surveyIndustryMapper->update($record);
930
                                 $result = $surveyIndustryMapper->insert($record);
Línea 931... Línea 931...
931
                                 $ok = $ok && $result;
931
                                 $ok = $ok && $result;
Línea 1020... Línea 1020...
1020
            {
1020
            {
1021
                $skillMapper = SkillMapper::getInstance($this->adapter);
1021
                $skillMapper = SkillMapper::getInstance($this->adapter);
1022
                $skillm = $skillMapper->fetchOne($skillb);
1022
                $skillm = $skillMapper->fetchOne($skillb);
1023
                array_push($skillMaster, $skillm->uuid);
1023
                array_push($skillMaster, $skillm->uuid);
1024
            }
1024
            }
-
 
1025
 
-
 
1026
            $SurveyJobDescriptionMapper = SurveyJobDescriptionMapper::getInstance($this->adapter);
-
 
1027
            $SurveyJobDescriptions  = $SurveyJobDescriptionMapper->fetchAllBySurveyId($survey->id);
-
 
1028
            
-
 
1029
            $SurveyJobDescriptionA = [];
-
 
1030
            foreach($SurveyJobDescriptions as $SurveyJobDescription)
-
 
1031
            {
-
 
1032
                array_push($SurveyJobDescriptionA, $SurveyJobDescription->job_description_id);
-
 
1033
            }
-
 
1034
            
-
 
1035
 
-
 
1036
            $SurveyJobDescriptionMaster = [];
-
 
1037
            foreach($skilla as $skillb)
-
 
1038
            {
-
 
1039
                $skillMapper = SkillMapper::getInstance($this->adapter);
-
 
1040
                $skillm = $skillMapper->fetchOne($skillb);
-
 
1041
                array_push($skillMaster, $skillm->uuid);
-
 
1042
            }
-
 
1043
 
1025
            // return new JsonModel([
1044
            // return new JsonModel([
1026
            //     'success' => false,
1045
            //     'success' => false,
1027
            //     'data' => $skillMaster
1046
            //     'data' => $skillMaster
1028
            // ]);
1047
            // ]);