vendor/cakephp/cakephp/src/ORM/Association.php 1 location
|
@@ 572-578 (lines=7) @@
|
| 569 |
|
protected function _appendNotMatching($query, $options) |
| 570 |
|
{ |
| 571 |
|
$target = $this->_targetTable; |
| 572 |
|
if (!empty($options['negateMatch'])) { |
| 573 |
|
$primaryKey = $query->aliasFields((array)$target->primaryKey(), $this->_name); |
| 574 |
|
$query->andWhere(function ($exp) use ($primaryKey) { |
| 575 |
|
array_map([$exp, 'isNull'], $primaryKey); |
| 576 |
|
return $exp; |
| 577 |
|
}); |
| 578 |
|
} |
| 579 |
|
} |
| 580 |
|
|
| 581 |
|
/** |
vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php 1 location
|
@@ 360-366 (lines=7) @@
|
| 357 |
|
protected function _appendNotMatching($query, $options) |
| 358 |
|
{ |
| 359 |
|
$target = $this->junction(); |
| 360 |
|
if (!empty($options['negateMatch'])) { |
| 361 |
|
$primaryKey = $query->aliasFields((array)$target->primaryKey(), $target->alias()); |
| 362 |
|
$query->andWhere(function ($exp) use ($primaryKey) { |
| 363 |
|
array_map([$exp, 'isNull'], $primaryKey); |
| 364 |
|
return $exp; |
| 365 |
|
}); |
| 366 |
|
} |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
/** |