eee
This commit is contained in:
@@ -80,10 +80,10 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
|
|||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function whereNotExists(Closure|string $callback, array $attributes = []): static
|
public function whereNotExists(Closure|Query $callback, array $attributes = []): static
|
||||||
{
|
{
|
||||||
if (is_string($callback)) {
|
if ($callback instanceof Query) {
|
||||||
$this->where[] = $callback;
|
$this->where[] = 'NOT EXISTS(' . $callback->build() . ')';
|
||||||
} else {
|
} else {
|
||||||
$this->where[] = 'NOT EXISTS(' . $this->makeClosureFunction($callback) . ')';
|
$this->where[] = 'NOT EXISTS(' . $this->makeClosureFunction($callback) . ')';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user