Bug #22050 Bug Fixed

TemplateGroup w/Template: No such property: ‘session’ on EllisLab\ExpressionEngine\Legacy\Facade

Version: 3.4.2 Reporter: TJ Draper

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

In 3.4.2 I have an addon making this model request:

$templateGroups = ee('Model')->get('TemplateGroup')
 ->with('Templates')
 ->order('group_order', 'ASC')
 ->all();

This throws an error:

Exception Caught

No such property: 'session' on EllisLab\ExpressionEngine\Legacy\Facade

Facade.php:107

If I remove ->with(‘Templates’) the exception goes away. I’ve spent some time making sure it’s not my bug, but as far as I can tell, this is a bug in the model somewhere getting Template Groups and related templates.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases