I have tried your module, working fine with mysql, however when installed the site again and switched to mongodb field storage engine, the queries stopped working and i got lot of mongodb exceptions. It looks like the extrafields are not added to the returned EntityFieldQueryExtraFields result when using mongodb.

Is it issue with this module that is not agnostic enough or is this a MongoDB issue?

Comments

greg_meszaros’s picture

Ok i think i found the issue. The mongodb_field_storage.module is not implementing the finishQuery function (defined in entity.inc), which is overriden in efq_extra_field.module.
Can we move this issue under mongodb project? I have fixed the issue for my needs, but i think it needs lot of discussion with the main contributor of the mongodb module before producing patch or anything.

nick_vh’s picture

Please move it. As far as I know I am not doing anything database specific.

chx’s picture

Title: Support for mongodb » Support EntityFieldQuery Extra Fields
Project: EntityFieldQuery Extra Fields » MongoDB
Component: Code » Field storage
Priority: Critical » Normal

As for #2 the whole module is nothing but SQL... but I will see whether we can do anything helpful. Like, change the returned object to return everything :)

But then again the whole module is violating the semantics of the entities so I am inclined to wont fix.

chx’s picture

Status: Active » Closed (won't fix)