Skip to content

Commit 5d7b92a

Browse files
committed
Add notice about querying a type without "campos"
1 parent b1df121 commit 5d7b92a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Jp7/Interadmin/Type.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,10 @@ protected function _prepareInterAdminsOptions(&$options, &$optionsInstance)
11991199
$options['model'] = $recordModel;
12001200
$options['eager_load'] = [];
12011201

1202+
if (!$options['campos']) {
1203+
\Log::notice('Querying a type without "campos" - id_tipo: '.$this->id_tipo);
1204+
}
1205+
12021206
if (isset($options['with'])) {
12031207
foreach ($options['with'] as $withRelationship) {
12041208
// Isso aqui é mais uma validação

0 commit comments

Comments
 (0)