@@ 776-783 (lines=8) @@ | ||
773 | * |
|
774 | * @return $this This QueryBuilder instance. |
|
775 | */ |
|
776 | public function where($predicates) |
|
777 | { |
|
778 | if ( ! (func_num_args() == 1 && $predicates instanceof CompositeExpression)) { |
|
779 | $predicates = new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args()); |
|
780 | } |
|
781 | ||
782 | return $this->add('where', $predicates); |
|
783 | } |
|
784 | ||
785 | /** |
|
786 | * Adds one or more restrictions to the query results, forming a logical |
|
@@ 962-969 (lines=8) @@ | ||
959 | * |
|
960 | * @return $this This QueryBuilder instance. |
|
961 | */ |
|
962 | public function having($having) |
|
963 | { |
|
964 | if ( ! (func_num_args() == 1 && $having instanceof CompositeExpression)) { |
|
965 | $having = new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args()); |
|
966 | } |
|
967 | ||
968 | return $this->add('having', $having); |
|
969 | } |
|
970 | ||
971 | /** |
|
972 | * Adds a restriction over the groups of the query, forming a logical |