I'm running into an issue when I alter a table and add a new column, the new column doesn't exist and I get other errors like unknown getter, and some says the field is unknown, I know how to do the custom entities but is it a different approach for an existing table that you're altering..
This is my entity class
This is my entity class
PHP:
<?php
namespace rblapps\rbL1\Entity;
use XF\Mvc\Entity\Entity;
use XF\Mvc\Entity\Structure;
class PollResponse extends \XF\Entity\PollResponse
{
public static function getStructure(Structure $structure)
{
$structure = parent::getStructure($structure);
$structure->table = 'xf_poll_response';
$structure->columns = [
'user_id' => ['type' => self::UINT],
];
return $structure;
}
}