processwire-issues
processwire-issues copied to clipboard
findRaw() subfield => label does not work
Short description of the issue
I'm using this selector:
bdb($this->wire->pages->findRaw(
[
'parent' => rockcommerce()->variationsPage(),
],
[
'title',
Variation::field_comment => 'comment',
Variation::field_options . '.title' => 'options',
],
['flat' => true]
));
And I get this result:
Expected behavior
I'd expect the array key of rockcommerce_variation_options.title to be options as defined in the findRaw() call.
Actual behavior
Variation::field_options . '.title' => 'options', does not take the custom label into account