in2code-de / femanager

Modern TYPO3 Frontend User RegistrationTYPO3 Frontend User Registration and Management based on Extbase and Fluid and on TYPO3 (version 8 or newer) and the possibility to extend it to your needs.
https://www.in2code.de/agentur/typo3-extensions/femanager/
48 stars 118 forks source link

Extended user model only works with simple property types, DateTime and ObjectStorage #462

Open mediaessenz opened 1 year ago

mediaessenz commented 1 year ago

Reason: The UserUtility::getDirtyPropertiesFromUser method can only handle simple types (!is_object), DateTimes and ObjectStorages.

Extended models, which has for example a model (=object) as property, will produce an exception.

Tested with femanager 7.1.0

siwa-pparzer commented 1 year ago

+1 could be solved via a toString method in the object

cehret commented 1 year ago

I run into the same issue. As this field is not editable by the user I added it to the ignoreProperties - as this is a static function I cannot XClass it as far as I understood - so I had to change it directly in the class which will break with the next update :(

sbusemann commented 1 year ago

@mediaessenz i updated the example https://github.com/in2code-de/femanagerextended

Can you provide me a code example, then I have a test case.

maciejszklarczyk commented 1 year ago

@sbusemann do you need code example still? I can provide - same issue.

sbusemann commented 1 year ago

yes please

maciejszklarczyk commented 1 year ago

@sbusemann code example pushed :)