femanager icon indicating copy to clipboard operation
femanager copied to clipboard

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

Open mediaessenz opened this issue 3 years ago • 6 comments

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

mediaessenz avatar Jan 23 '23 14:01 mediaessenz

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

parzerphilipp avatar Jan 30 '23 06:01 parzerphilipp

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 :(

cehret avatar Feb 09 '23 15:02 cehret

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

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

sbusemann avatar Mar 01 '23 14:03 sbusemann

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

maciejszklarczyk avatar Mar 07 '23 12:03 maciejszklarczyk

yes please

sbusemann avatar Mar 08 '23 06:03 sbusemann

@sbusemann code example pushed :)

maciejszklarczyk avatar Mar 08 '23 14:03 maciejszklarczyk