diff options
author | Gary Kim <gary@garykim.dev> | 2021-07-31 04:03:34 +0300 |
---|---|---|
committer | Gary Kim <gary@garykim.dev> | 2021-09-20 21:30:08 +0300 |
commit | 886a7753d4424b22e00521a525b8b7d5035b7a30 (patch) | |
tree | ea2efa0e87b10ce0762f4798690d4f7a4960bee9 /lib/Model | |
parent | 6d261cd902a1e16666eea0c14b8f67a9ef9973d2 (diff) |
Add sending room shares support
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/AttendeeMapper.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Model/AttendeeMapper.php b/lib/Model/AttendeeMapper.php index 261b949b0..2599e9d9d 100644 --- a/lib/Model/AttendeeMapper.php +++ b/lib/Model/AttendeeMapper.php @@ -79,6 +79,24 @@ class AttendeeMapper extends QBMapper { } /** + * @param int $id + * @param string $token + * @return Attendee + * @throws DBException + * @throws DoesNotExistException + * @throws MultipleObjectsReturnedException + */ + public function getByRemoteIdAndToken(int $id, string $token): Attendee { + $query = $this->db->getQueryBuilder(); + $query->select('*') + ->from($this->getTableName()) + ->where($query->expr()->eq('id', $query->createNamedParameter($id))) + ->andWhere($query->expr()->eq('access_token', $query->createNamedParameter($token))); + + return $this->findEntity($query); + } + + /** * @param int $roomId * @param string $actorType * @param int|null $lastJoinedCall |