- 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:
mcndave committed 2021-01-06 19:35:45 +00:00
1 parent 9e84bd3536
commit 7dd64abf29
6 files changed
+136 -24

No files matched your search

+4 -4
View File
@@ -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;
}