*/ class TransferOwnershipMapper extends QBMapper { public function __construct(IDBConnection $db) { parent::__construct($db, 'user_transfer_owner', TransferOwnership::class); } public function getById(int $id): TransferOwnership { $qb = $this->db->getQueryBuilder(); $qb->select('*') ->from($this->getTableName()) ->where( $qb->expr()->eq('id', $qb->createNamedParameter($id)) ); return $this->findEntity($qb); } }