Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2806 Rev 2807
Línea 875... Línea 875...
875
                
875
                
876
                $select = $queryMapper->getSql()->select();
876
                $select = $queryMapper->getSql()->select();
877
                $select->columns(['id', 'uuid', 'title', 'employment_type', 'last_date_of_application']);
877
                $select->columns(['id', 'uuid', 'title', 'employment_type', 'last_date_of_application']);
878
                $select->from(['j' => JobMapper::_TABLE]);
878
                $select->from(['j' => JobMapper::_TABLE]);
879
                $select->join(['js' => JobSaveMapper::_TABLE], 'j.id = js.job_id');
879
                $select->join(['js' => JobSaveMapper::_TABLE], 'j.id = js.job_id');
880
                $select->join(['c' => CompanyMapper::_TABLE], 'j.company_id = c.id',['image','uuid'=>'comp_uuid']);
880
                $select->join(['c' => CompanyMapper::_TABLE], 'j.company_id = c.id',['image', 'comp_uuid'=>'uuid']);
881
                $select->where->equalTo('j.status', Job::STATUS_ACTIVE);
881
                $select->where->equalTo('j.status', Job::STATUS_ACTIVE);
Línea 882... Línea 882...
882
                $select->where->equalTo('js.user_id', $currentUser->id);
882
                $select->where->equalTo('js.user_id', $currentUser->id);
883
                
883
                
884
                if($search) {
884
                if($search) {
Línea 885... Línea 885...
885
                    $select->where->like('title', '%' . $search . '%');
885
                    $select->where->like('title', '%' . $search . '%');
Línea 886... Línea 886...
886
                }
886
                }
Línea 887... Línea 887...
887
                
887
                
888
                $select->order('last_date_of_application DESC');
888
                $select->order('last_date_of_application DESC');
889
 
889
 
Línea 890... Línea 890...
890
                $selectString = $queryMapper->getSql()->buildSqlString($select);
890
                // $selectString = $queryMapper->getSql()->buildSqlString($select);
Línea 891... Línea 891...
891
 
891
 
892
                print_r(
892
                // print_r(
893
                    $selectString
893
                //     $selectString
894
                );
894
                // );
Línea 895... Línea 895...
895
 
895