Model::setEntity concept is not complete.
The current concept of model.setEntity( entity )
is not working well. There exist multiple model instances, because of the threading and also the flux implementations have an extra model instance. This means that it is very difficult to keep track of when and where to call model.setEntity( entity )
. Possible solutions
- remove the
setEntity
and set the Entity when use a method from the autogenerated models. As long as only the pointer is set this works, or - make the entity a parameter in each of the autogenerated models methods, or
- fix the current situation, which could also be problematic