Add notnull property to <group> tag in conditions

This commit is contained in:
Kijin Sung 2025-05-29 23:08:05 +09:00
parent fda92b368d
commit 6e325526c8
5 changed files with 43 additions and 6 deletions

View file

@ -580,6 +580,10 @@ class Query extends VariableBase
{
$result .= ($result === '' ? '' : (' ' . $condition->pipe . ' ')) . '(' . $condition_string . ')';
}
elseif ($condition->not_null)
{
throw new \Rhymix\Framework\Exceptions\QueryError('Condition group marked as NOT NULL must contain at least one valid condition');
}
}
// Simple condition