|Component:||Entity CRUD controller|
The entities returned by
entity_load() using the Entity API are currently keyed by their machine names, even though the general contract for
entity_load() is to return them keyed by ID.
This was the only thing to do back when default entities just didn't have any IDs, but in my opinion should be revised now that that has changed.
(I ran into this problem when trying to create a search index on search indexes and while I admit that this is hardly a real-world use case, it illustrates the problem that one has when dealing with entities on a general level without this issue being fixed.)