protected function getGerritChangesetByIdentifier($project, $branch, $id, $createdOn)
    {
        $dbHandle = $this->getDatabase()->getDatabaseConnection();

        $query = 'SELECT `id`, `project`, `branch`, `topic`, `identifier`, `number`, `subject`, `owner`, `url`, `commit_message`,
                         `created_on`, `last_updated`, `sort_key`, `open`, `status`, `current_patchset`
                  FROM ' . Database::TABLE_CHANGESET . '
                  WHERE `project` = :project
                        AND `branch` = :branch
                        AND `identifier` = :id
                        AND `created_on` = :created_on';
        $statement = $dbHandle->prepare($query);

        $statement->bindParam(':project', $project, \PDO::PARAM_INT);
        $statement->bindParam(':branch', $branch, \PDO::PARAM_INT);
        $statement->bindParam(':id', $id, \PDO::PARAM_STR);
        $statement->bindParam(':created_on', $createdOn, \PDO::PARAM_INT);
        $executeResult = $statement->execute();

        $statement = $this->getDatabase()->checkQueryError($statement, $executeResult);
        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
protected function getGerritChangesetByIdentifier($project, $branch, $id, $createdOn)
    {
        $dbHandle = $this->getDatabase()->getDatabaseConnection();

        $query = 'SELECT `id`, `project`, `branch`, `topic`, `identifier`, `number`, `subject`, `owner`, `url`, `commit_message`,
                         `created_on`, `last_updated`, `sort_key`, `open`, `status`, `current_patchset`
                  FROM ' . Database::TABLE_CHANGESET . '
                  WHERE `project` = :project
                        AND `branch` = :branch
                        AND `identifier` = :id
                        AND `created_on` = :created_on';
        $statement = $dbHandle->prepare($query);

        $statement->bindParam(':project', $project, \PDO::PARAM_INT);
        $statement->bindParam(':branch', $branch, \PDO::PARAM_INT);
        $statement->bindParam(':id', $id, \PDO::PARAM_STR);
        $statement->bindParam(':created_on', $createdOn, \PDO::PARAM_INT);
        $executeResult = $statement->execute();

        $statement = $this->getDatabase()->checkQueryError($statement, $executeResult);
        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
protected function getGerritChangesetByIdentifier ( $ project , $ branch , $ id , $ createdOn ) { $ dbHandle = $ this -> getDatabase ( ) -> getDatabaseConnection ( ) ; $ query = 'SELECT `id`, `project`, `branch`, `topic`, `identifier`, `number`, `subject`, `owner`, `url`, `commit_message`,
                         `created_on`, `last_updated`, `sort_key`, `open`, `status`, `current_patchset`
                  FROM ' . Database :: TABLE_CHANGESET . '
                  WHERE `project` = :project
                        AND `branch` = :branch
                        AND `identifier` = :id
                        AND `created_on` = :created_on' ; $ statement = $ dbHandle -> prepare ( $ query ) ; $ statement -> bindParam ( ':project' , $ project , \ PDO :: PARAM_INT ) ; $ statement -> bindParam ( ':branch' , $ branch , \ PDO :: PARAM_INT ) ; $ statement -> bindParam ( ':id' , $ id , \ PDO :: PARAM_STR ) ; $ statement -> bindParam ( ':created_on' , $ createdOn , \ PDO :: PARAM_INT ) ; $ executeResult = $ statement -> execute ( ) ; $ statement = $ this -> getDatabase ( ) -> checkQueryError ( $ statement , $ executeResult ) ; return $ statement -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Returns a changeset by the unique identifier

@param int $project ID of a record from the project table
@param int $branch ID of a record from the branch table
@param string $id Change id of changeset
@param int $createdOn Timestamp of creation time
@return mixed
Returns a changeset by the unique identifier