Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1839 Rev 1840
Línea 68... Línea 68...
68
    public function fetchOneByUuid($uuid)
68
    public function fetchOneByUuid($uuid)
69
    {
69
    {
70
        $prototype = new Survey();
70
        $prototype = new Survey();
71
        $select = $this->sql->select(self::_TABLE);
71
        $select = $this->sql->select(self::_TABLE);
72
        $select->where->equalTo('uuid', $uuid);
72
        $select->where->equalTo('uuid', $uuid);
73
        $select->where->equalTo('status', Survey::STATUS_ACTIVE);
-
 
74
        echo $select->getSqlString($this->adapter->platform); exit;
73
        echo $select->getSqlString($this->adapter->platform); exit;
75
        return $this->executeFetchOneObject($select, $prototype);
74
        return $this->executeFetchOneObject($select, $prototype);
76
    }
75
    }
Línea 85... Línea 84...
85
    {
84
    {
86
        $prototype = new Survey();
85
        $prototype = new Survey();
Línea 87... Línea 86...
87
        
86
        
88
        $select = $this->sql->select(self::_TABLE);
87
        $select = $this->sql->select(self::_TABLE);
-
 
88
        $select->where->equalTo('company_id', $company_id);
89
        $select->where->equalTo('company_id', $company_id);
89
        $select->where->equalTo('status', Survey::STATUS_ACTIVE);
Línea 90... Línea 90...
90
        $select->order('id');
90
        $select->order('id');
91
        
91