Condition pipe defaults to AND

XML 쿼리 작성시 pipe="and"를 일일이 추가하지 않아도 기본값이 AND가 되도록 함
This commit is contained in:
Kijin Sung 2018-06-30 15:55:06 +09:00
parent 83362034cd
commit efa1b603c4
4 changed files with 16 additions and 9 deletions

View file

@ -62,7 +62,7 @@ class ConditionTag
function __construct($condition)
{
$this->operation = $condition->attrs->operation;
$this->pipe = $condition->attrs->pipe;
$this->pipe = $condition->attrs->pipe ?: 'and';
$dbParser = DB::getParser();
$this->column_name = $dbParser->parseExpression($condition->attrs->column);