Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 601 Rev 602
Línea 111... Línea 111...
111
 
111
 
112
        $prototype = new Behaviors();
112
        $prototype = new Behaviors();
113
        return $this->executeFetchOneObject($select, $prototype);
113
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 114...
-
 
114
    }
-
 
115
 
-
 
116
     /**
-
 
117
     *
-
 
118
     * @param string $description
-
 
119
     * @param string $company_id
-
 
120
     * @return Behaviors
-
 
121
     */
-
 
122
    public function fetchOneByDescription($description, $company_id) {
-
 
123
        $select = $this->sql->select(self::_TABLE);
-
 
124
        $select->where->equalTo('description', $description);
-
 
125
        $select->where->equalTo('company_id', $company_id);
-
 
126
        $select->limit(1);
-
 
127
 
-
 
128
        $prototype = new Behaviors();
-
 
129
        return $this->executeFetchOneObject($select, $prototype);
114
    }
130
    }
115
 
131
 
116
    /**
132
    /**
117
     *
133
     *
118
     * @param Behaviors $competencyType
134
     * @param Behaviors $competencyType