I'm having an issue with getting data from custom column I added in customer_entity
. I added a column typo3_password
in UpdateSchema.php and now I need to get data from this column. Trying to do that using getTypo3Password()
method and adding CustomerInterface in module's Api\Data but it doesn't work.
$customer = $this->customerRepository->get($username);
$customerId = $customer->getId();
$typoHashFromDb = $customer->getTypo3Password();
Any ideas? Do I need to add my custom Customer Model as well?
-- edit
Adding the custom CustomerInterface I created.
const TYPO3_PASSWORD = 'typo3_password';
/**
* Get Typo3 Password
*
* @return string|null
*/
public function getTypo3Password();
/**
* @param string $typo3password
* @return $this
*/
public function setTypo3Password($typo3password);