This answer is related to an extbase
-implementation only
The model for your new field might be missing.
You've to create an own model for fe_users
, that can extend the existing model resided in typo3/sysext/extbase/Classes/Domain/Model/FrontendUser.php
but is usually extended by namespace, so the code would be like this:
<?php
namespace Vendor\Extension\Domain\Model;
class FeUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
{
/**
* @var string
*/
$myNewField = ''; /* in Database: `my_new_field` */
// optional some more code ...
/**
* Sets the myNewField value
*
* @param string $myNewField
* @api
*/
public function setMyNewField ($myNewField )
{
$this->myNewField = $myNewField;
}
/**
* Returns the myNewField value
*
* @return string
* @api
*/
public function getMyNewField ()
{
return $this->myNewField;
}
}
If you never chose to extend the existing model, you need to include getter- and setter-functions for all fields that might be somehow concerned in context of your own implementation (for some field-types further functions are required).
If your new field has a connection to another table or even represents a node of an mm-connection the model has to be adjusted accordingly, I just entered a simple example.