Fixed mismatch parsing exception

method Member::getScheduleSyncInfoByEvent was returning
false instead of null when member didnt had any sync info
associated with event

Change-Id: I311f5dd75d00c44247f845b78f5c158482070dd1
This commit is contained in:
Sebastian Marcet 2017-11-07 08:31:26 +11:00
parent 0622bfff7a
commit 481ea91170
1 changed files with 2 additions and 1 deletions

View File

@ -776,7 +776,8 @@ SQL;
$criteria = Criteria::create();
$criteria->where(Criteria::expr()->eq('summit_event', $event));
$criteria->andWhere(Criteria::expr()->eq('calendar_sync_info', $calendar_sync_info));
return $this->schedule_sync_info->matching($criteria)->first();
$res = $this->schedule_sync_info->matching($criteria)->first();
return $res === false ? null : $res;
}
catch(NoResultException $ex1){
return null;