in2code-de / femanagerextended

Example extension how to extend femanager for TYPO3
6 stars 4 forks source link

New Fields are not saved from Registration Plugin #7

Closed Xarno closed 6 years ago

Xarno commented 6 years ago

I tried to build my own Extension along your femanagerextended guideline. With partial success. I got the field displayed in frontend and backend but could not get the values saved via the registration plugin.

I tried also to draw in hints from: http://www.lukasjakob.com/extend-a-typo3-extbase-model-with-custom-field/ https://www.typo3lexikon.de/typo3-tutorials/core/systemextensions/extbase/property-mapper.html https://gist.github.com/kraftb/96e060bcf1c58f647594 https://gist.github.com/caseywilliams/8464861

As a last resort i installed this example Extension with the git master version in our typo3 (V8.7.11) and was met by the same Result. I could see the fields in frontend and backend, but i could not get the values saved.

The exception thrown shows always the baseclass of FE Manager instead of my subclass.

Thu, 22 Mar 2018 17:45:34 +0100 [ALERT] request="bf9baa9a7b937" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler": Oops, an error occurred! Code: 201803221745347b97dd4d - {"exception":"TYPO3\CMS\Extbase\Property\Exception\InvalidTargetException: Property \"idliketo\" was not found in target object of type \"In2code\Femanager\Domain\Model\User\". in \/var\/www\/typo3_src-8.7.11\/typo3\/sysext\/extbase\/Classes\/Property\/TypeConverter\/PersistentObjectConverter.php:128

Xarno commented 6 years ago

Ok, with the help of #3 and the referenced Stackoverflow post we got it working. Only minor hint to add, which is not explicitly stated there: The Xclass folder needs to be inside the Classes folder.