Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6388 Rev 6521
Línea 9... Línea 9...
9
use LeadersLinked\Model\MyCoachQuestion;
9
use LeadersLinked\Model\MyCoachQuestion;
10
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
10
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
11
use Laminas\Db\ResultSet\HydratingResultSet;
11
use Laminas\Db\ResultSet\HydratingResultSet;
12
use Laminas\Paginator\Adapter\DbSelect;
12
use Laminas\Paginator\Adapter\DbSelect;
13
use Laminas\Paginator\Paginator;
13
use Laminas\Paginator\Paginator;
-
 
14
use Laminas\Db\Sql\Expression;
Línea 14... Línea 15...
14
 
15
 
15
 
16
 
16
class MyCoachQuestionMapper extends MapperCommon
17
class MyCoachQuestionMapper extends MapperCommon
Línea 59... Línea 60...
59
        
60
        
60
        $prototype = new MyCoachQuestion();
61
        $prototype = new MyCoachQuestion();
61
        return $this->executeFetchOneObject($select, $prototype);
62
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 63...
-
 
63
    }
-
 
64
    
-
 
65
    /**
-
 
66
     *
-
 
67
     * @param int $id
-
 
68
     * @param int $network_id
-
 
69
     * @return MyCoachQuestion
-
 
70
     */
-
 
71
    public function fetchOneByIdAndNetworkId($id, $network_id)
-
 
72
    {
-
 
73
        
-
 
74
        $select = $this->sql->select(self::_TABLE);
-
 
75
        $select->where->equalTo('id', $id);
-
 
76
        $select->where->equalTo('network_id', $network_id);
-
 
77
 
-
 
78
        
-
 
79
        $prototype = new MyCoachQuestion();
-
 
80
        return $this->executeFetchOneObject($select, $prototype);
-
 
81
        
Línea 62... Línea 82...
62
    }
82
    }
63
    
83
    
64
    
84
    
65
    /**
85
    /**
66
     *
86
     *
67
     * @param int $uuid
87
     * @param string $uuid
68
     * @return MyCoachQuestion
88
     * @return MyCoachQuestion
Línea 75... Línea 95...
75
        
95
        
76
        
96
        
77
        $prototype = new MyCoachQuestion();
97
        $prototype = new MyCoachQuestion();
-
 
98
        return $this->executeFetchOneObject($select, $prototype);
-
 
99
    }
-
 
100
   
-
 
101
    /**
-
 
102
     *
-
 
103
     * @param string $uuid
-
 
104
     * @param int $network_id
-
 
105
     * @return MyCoachQuestion
-
 
106
     */
-
 
107
    public function fetchOneByUuidAndNetworkId($uuid, $network_id)
-
 
108
    {
-
 
109
        
-
 
110
        $select = $this->sql->select(self::_TABLE);
-
 
111
        $select->where->equalTo('uuid', $uuid);
-
 
112
        $select->where->equalTo('network_id', $network_id);
-
 
113
        
-
 
114
        
-
 
115
        $prototype = new MyCoachQuestion();
-
 
116
        return $this->executeFetchOneObject($select, $prototype);
Línea 78... Línea 117...
78
        return $this->executeFetchOneObject($select, $prototype);
117
    }
79
    }
118
    
80
    
119
    
81
    /**
120
    /**