plugins/Eav/src/Model/Behavior/EavBehavior.php 1 location
|
@@ 418-422 (lines=5) @@
|
| 415 |
|
*/ |
| 416 |
|
public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary) |
| 417 |
|
{ |
| 418 |
|
if (!$this->config('status') || |
| 419 |
|
(isset($options['eav']) && $options['eav'] === false) |
| 420 |
|
) { |
| 421 |
|
return true; |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
$options['bundle'] = !isset($options['bundle']) ? null : $options['bundle']; |
| 425 |
|
$query = $this->_scopeQuery($query, $options['bundle']); |
plugins/Field/src/Model/Behavior/FieldableBehavior.php 1 location
|
@@ 180-184 (lines=5) @@
|
| 177 |
|
*/ |
| 178 |
|
public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary) |
| 179 |
|
{ |
| 180 |
|
if ((isset($options['fieldable']) && $options['fieldable'] === false) || |
| 181 |
|
!$this->config('status') |
| 182 |
|
) { |
| 183 |
|
return true; |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
if (array_key_exists('eav', $options)) { |
| 187 |
|
unset($options['eav']); |