plugins/Eav/src/Model/Behavior/EavBehavior.php 1 location
|
@@ 398-402 (lines=5) @@
|
| 395 |
|
*/ |
| 396 |
|
public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary) |
| 397 |
|
{ |
| 398 |
|
if (!$this->config('enabled') || |
| 399 |
|
(isset($options['eav']) && $options['eav'] === false) |
| 400 |
|
) { |
| 401 |
|
return true; |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
if (!isset($options['bundle'])) { |
| 405 |
|
$options['bundle'] = null; |
plugins/Field/src/Model/Behavior/FieldableBehavior.php 1 location
|
@@ 182-186 (lines=5) @@
|
| 179 |
|
*/ |
| 180 |
|
public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary) |
| 181 |
|
{ |
| 182 |
|
if ((isset($options['fieldable']) && $options['fieldable'] === false) || |
| 183 |
|
!$this->config('enabled') |
| 184 |
|
) { |
| 185 |
|
return true; |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
if (array_key_exists('eav', $options)) { |
| 189 |
|
unset($options['eav']); |