Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1658 Rev 1659
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
namespace LeadersLinked\Mapper;
5
namespace LeadersLinked\Mapper;
6
 
6
 
-
 
7
use LeadersLinked\Model\HighPerformanceTeamsGroupsMembers;
7
use LeadersLinked\Model\HighPerformanceTeamsGroupsMembers;
8
use LeadersLinked\Model\HighPerformanceTeamsGroups;
8
use LeadersLinked\Model\HighPerformanceTeamsGroups;
9
use LeadersLinked\Model\User;
9
use LeadersLinked\Mapper\Common\MapperCommon;
10
use LeadersLinked\Mapper\Common\MapperCommon;
10
use Laminas\Db\Adapter\AdapterInterface;
11
use Laminas\Db\Adapter\AdapterInterface;
11
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
12
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
Línea 96... Línea 97...
96
        
97
        
97
        
98
        
Línea 98... Línea 99...
98
        return $paginator;
99
        return $paginator;
99
    }
100
    }
100
 
101
 
101
    public function fetchAll($group_id)
102
    public function fetchAllInnerJoinUser($group_id, $table_user)
-
 
103
    {
-
 
104
        $prototype = new User(); 
102
    {
105
        $select = $this->sql->select();
103
        $prototype = new HighPerformanceTeamsGroupsMembers();
106
        $select->from(['u' => $table_user]);
104
        $select = $this->sql->select(self::_TABLE);
107
        $select->join(['m' => self::_TABLE], 'm.user_id = u.id', []);
105
        $select->where->equalTo('group_id', $group_id);
108
        $select->where->equalTo('m.group_id', $group_id);
106
        return $this->executeFetchAllObject($select, $prototype);
109
        return $this->executeFetchAllObject($select, $prototype);
107
    }
110
    }