Notice!Fuel\Core\PhpErrorException [ Notice ]:
Undefined index: idPKGPATH//orm/classes/query.php @ line 1528
1523 }
1524
1525 // construct the PK string representation for this record
1526 if (count($model['pk']) == 1)
1527 {
1528 $pk = $record[$model['pk'][0]];
1529 // skip empty results
1530 if (is_null($pk))
1531 {
1532 continue;
1533 }
Now, I have to add the primary key:
$currentPeriod = Setting::query()->select(['id', 'value'])->get();
Doc Ref: https://fuelphp.com/docs/packages/orm/crud.html#/partial_selects
Fuel 1.9
It looks like you're new here. If you want to get involved, click one of these buttons!