- Added a LoadRelation for the repository.
- Added a new @Filter() annotation to the relation; adding it to JOIN is also coming. - Some bugfixes done within the Where and ConditionTrait.
This commit is contained in:
1 parent
9e84bd3536
commit
7dd64abf29
6 files changed
+136
-24
No files matched your search
@@ -25,9 +25,9 @@ trait ConditionTrait
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function where($field, $value, string $operator = Query\Where::OPERATOR_EQUAL) : self
|
||||
public function where($field, $value, string $operator = Query\Where::OPERATOR_EQUAL, $condition = Query\Where::CONDITION_AND) : self
|
||||
{
|
||||
$this->queryBuilder->where($field, $value, $operator, Query\Where::CONDITION_AND);
|
||||
$this->queryBuilder->where($field, $value, $operator, $condition);
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -67,9 +67,9 @@ trait ConditionTrait
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function having($field, $value, string $operator = Query\Where::OPERATOR_EQUAL) : self
|
||||
public function having($field, $value, string $operator = Query\Where::OPERATOR_EQUAL, $condition = Query\Where::CONDITION_AND) : self
|
||||
{
|
||||
$this->queryBuilder->having($field, $value, $operator, Query\Where::CONDITION_AND);
|
||||
$this->queryBuilder->having($field, $value, $operator, $condition);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user