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