When i update a relation, e.g. update parent_id on Child (Child belongsTo Parent, Parent hasMany Child) and respond with the Child->Parent object, somehow the returned Parent is still the old one. I think this is because the Parent is already loaded at that time.
现在,我想处理这些关系,以便再次从数据库中获取新的父对象.
Is there a way to unload the loaded relationships? Like you can lazy-load by using model->load('relation'), can you also unload it again?
谢谢!