I'm currently updating one of our largest projects to C4 and we're using eager beaver on that one. seems like I'm having issues when using entry.children()
{%- set modules = entry.children() -%}
{%- do craft.eagerBeaver.eagerLoadElements(modules, [
'contentBuilder'
])
-%}
nystudio107\eagerbeaver\variables\EagerBeaverVariable::eagerLoadElements(): Argument #1 ($elements) must be of type craft\base\ElementInterface|array, craft\elements\db\EntryQuery given, called in /var/www/project/cms/vendor/twig/twig/src/Extension/CoreExtension.php on line 1607
{%- do craft.eagerBeaver.eagerLoadElements(entry, [
'children',
])
-%}
{%- set modules = entry.children() -%}
{%- do craft.eagerBeaver.eagerLoadElements(modules, [
'contentBuilder'
])
-%}
nystudio107\eagerbeaver\variables\EagerBeaverVariable::eagerLoadElements(): Argument #1 ($elements) must be of type craft\base\ElementInterface|array, Illuminate\Support\Collection given, called in /var/www/project/cms/vendor/twig/twig/src/Extension/CoreExtension.php on line 1607