public function getModel($table, $name, $value)
    {
        //get the row
        $result = $this->getRow($table, $name, $value);

        if (is_null($result)) {
            return null;
        }

        return $this->model()->setTable($table)->set($result);
    }