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

It is not possible to save anything anymore... #815

Closed
karakal opened this issue Dec 21, 2020 · 2 comments
Closed

It is not possible to save anything anymore... #815

karakal opened this issue Dec 21, 2020 · 2 comments

Comments

@karakal
Copy link

karakal commented Dec 21, 2020

Out of nowhere the message "Model is loaded as an entity, ID can not be changed to a different one" is popping up.

I just create a new Entity, set the values from a source entity and try to save it.

But the entity ends up in the database...

If I use entity->duplicate() as suggested in the documentation I just get the exception but no entity in the database.

I have the same function directly in my model definition, where it just works...

So what is wrong with this entityID and why did it get implemented in the first place? And why is - as always - such a change, that is breaking behaviour that "just" worked never tested?

@PhilippGrashoff
Copy link
Contributor

Hi,

check #801
This is the PR for fixing Model::duplicate()

@mvorisek
Copy link
Member

fixed in #801

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

No branches or pull requests

3 participants