src/AppDomain/CommandHandler.php
/**
     * Get the ID of a paper by its manuscript number, or null
     *
     * @param int $manuscriptNo
     * @return string | null
     */
Get the ID of a paper by its manuscript number, or null
@param int $manuscriptNo
@return string | null
Get the ID of a paper by its manuscript number or null @param int $manuscriptNo @return string | null
private function findIdByManuscriptNo(int $manuscriptNo)
    {
        $result = $this->entityManager->getConnection()->executeQuery(
            'SELECT * FROM paper_event WHERE json_contains(payload, ?)',
            [json_encode(['manuscriptNo' => $manuscriptNo])]
        );
        $event = $result->fetch();
        if (!$event) {
            return null;
        }
        return $event['paper_id'];
    }
private function findIdByManuscriptNo ( int $ manuscriptNo ) { $ result = $ this -> entityManager -> getConnection ( ) -> executeQuery ( 'SELECT * FROM paper_event WHERE json_contains(payload, ?)' , [ json_encode ( [ 'manuscriptNo' => $ manuscriptNo ] ) ] ) ; $ event = $ result -> fetch ( ) ; if ( ! $ event ) { return null ; } return $ event [ 'paper_id' ] ; }
Get the ID of a paper by its manuscript number, or null
 @param int $manuscriptNo
 @return string | null
Get the ID of a paper by its manuscript number or null @param int $manuscriptNo @return string | null
/**
         * @var $result \PDOStatement
         */