public function find($id)
    {
        if (empty($id)) {
            throw new StorageException('Invalid id parameter.');
        }

        try {
            return $this->select(null, [self::DIAGNOSTIC_ID => $id], 1)->fetch(\PDO::FETCH_ASSOC);
        } catch (\PDOException $e) {
            throw new StorageException($e->getMessage());
        }
    }
public function find($id)
    {
        if (empty($id)) {
            throw new StorageException('Invalid id parameter.');
        }

        try {
            return $this->select(null, [self::DIAGNOSTIC_ID => $id], 1)->fetch(\PDO::FETCH_ASSOC);
        } catch (\PDOException $e) {
            throw new StorageException($e->getMessage());
        }
    }
public function find ( $ id ) { if ( empty ( $ id ) ) { throw new StorageException ( 'Invalid id parameter.' ) ; } try { return $ this -> select ( null , [ self :: DIAGNOSTIC_ID => $ id ] , 1 ) -> fetch ( \ PDO :: FETCH_ASSOC ) ; } catch ( \ PDOException $ e ) { throw new StorageException ( $ e -> getMessage ( ) ) ; } }
Gets an existing record in database by id

@param $id
@return mixed
@throws StorageException
Gets an existing record in database by id