XF 2.1 Adding to Xf_Node

Syndrogo

Member
I am currently working on my first addon. I can't figure out what I am doing wrong that keeps generating this error when testing out my template modifications.

Error:
Code:
InvalidArgumentException: Unknown column lft on XF:Node in src\XF\Mvc\Entity\Finder.php at line 1401
XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn() in src\XF\Mvc\Entity\Finder.php at line 545
XF\Mvc\Entity\Finder->columnSqlName() in src\XF\Mvc\Entity\Finder.php at line 882
XF\Mvc\Entity\Finder->order() in src\XF\Repository\Node.php at line 25
XF\Repository\Node->getFullNodeList() in src\XF\Admin\Controller\Node.php at line 17
XF\Admin\Controller\Node->actionIndex() in src\XF\Mvc\Dispatcher.php at line 281
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 223
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 104
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 51
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2012
XF\App->run() in src\XF.php at line 379
XF::runApp() in admin.php at line 11

My Listener
Code:
<?php

namespace GT\AgeGate;

use XF\Mvc\Entity\Entity;

class Listener
{
    public static function nodeEntityStructure(\XF\Mvc\Entity\Manager $em, \XF\Mvc\Entity\Structure &$structure)
    {
        $structure->columns = [
            'gt_ag_agegate'                => ['type' => Entity::UINT, 'default' => 0],
            'gt_ag_agelimit'            => ['type' => Entity::UINT, 'default' => 0],
            'gt_ag_banner'                => ['type' => Entity::UINT, 'default' => 0],
            'gt_ag_banner_icon'         => ['type' => Entity::STR, 'default' => "fa-exclamation-triangle"],
            'gt_ag_banner_text'         => ['type' => Entity::STR, 'default' => "The content of this forum is directed to a mature audience."]
        ];
    }
}
 
Back
Top Bottom