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 |
|
$this->_initScopes(); |
plugins/Field/src/Model/Behavior/FieldableBehavior.php 1 location
|
@@ 168-172 (lines=5) @@
|
| 165 |
|
*/ |
| 166 |
|
public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary) |
| 167 |
|
{ |
| 168 |
|
if ((isset($options['fieldable']) && $options['fieldable'] === false) || |
| 169 |
|
!$this->config('status') |
| 170 |
|
) { |
| 171 |
|
return true; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
if (array_key_exists('eav', $options)) { |
| 175 |
|
unset($options['eav']); |