Closed (fixed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity CRUD controller
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 16:57 UTC
Updated:
29 Mar 2012 at 15:50 UTC
I'm currently doing some tests with exposing remote data/objects/entities as entities.
It actually works quite fine, thanks to EntityAPIController I can just override the query method. However, there is a hardcoded attempt to load the schema to deal with serialized fields in load()
I had to work around that by copy & pasting the load method and removing that stuff, would be nice if there would be a condition around it or another way to customize/override it without copying the whole thing.
I can provide a patch if you're ok with doing this.
PS: I do get some errors too from the default meta controller but I will have to override that anyway.
Comments
Comment #1
fagoWell, that is as currently the EntityAPIController is supposed to deal with entities stored in your DB. But I agree it shouldn't to make other use-case simple too, so I'd be happy if you can take care of that.
Ideally, we'd also provide some Views integration for those entities what basically should just be "efq_views". With the already in place data-selection based Views-integration (fields), that shouldn't be hard to do either.
Comment #2
fagook, I've done so by adding a simple check for the 'base table' key.