Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mediaessenz opened this issue Jan 23, 2023 · 6 comments
Assignees
Milestone

Comments

@mediaessenz
Copy link
Contributor

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 mediaessenz changed the title Extended user model only works with simple properties types, DateTime and ObjectStorage Extended user model only works with simple property types, DateTime and ObjectStorage Jan 23, 2023
@siwa-pparzer
Copy link
Contributor

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

@cehret
Copy link
Contributor

cehret commented Feb 9, 2023

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
Copy link
Contributor

@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
Copy link

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

@sbusemann
Copy link
Contributor

yes please

@maciejszklarczyk
Copy link

@sbusemann code example pushed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants