I'm trying to use the module ClosedQuestion together with EntityCache. When I enable EntityCache, then the fields on my CQ nodes becomes duplicated. I believe the cause is that both EntityCache, and ClosedQuestion, calls field_attach_load on the nodes.
There's a specific issue here, about this problem, but I'm looking for more general information, about what is the intended usage of field_attach_load? I've never seen a module doing it manually before, and don't think it's supposed to be used like this.
field_attach_submit
to save those fields too! It actually worked pretty well. here's the sourcefield_attach_form
there, right? Still that's interesting, the use-cases should be similar. Your suggestion gave me the idea to grep for field_attach_load in other contrib modules. I only found it in media, which uses it to create dummy content during upgrade. While this doesn't really tell me anything definite, it certainly leans towards, "Using it for loading the node, is wrong".form_attach_load
, but it does indeed look similar.