We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a9676f5b authored by mattl's avatar mattl

RSVP fromNotice now throws NoResultException

parent e32178d3
......@@ -226,7 +226,12 @@ class RSVP extends Managed_DataObject
static function fromNotice(Notice $notice)
return RSVP::getKV('uri', $notice->uri);
$rsvp = new RSVP();
$rsvp->uri = $notice->uri;
if (!$rsvp->find(true)) {
throw new NoResultException($rsvp);
return $rsvp;
static function forEvent(Happening $event)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment