Create an abstract reaction that uses the Entity API Revisioning. Any entity will have to implement the plugin to use this reaction class but this is to make is as easy as possible to integration new entity's

CommentFileSizeAuthor
#7 1676942.patch36.25 KBe2thex
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

indytechcook’s picture

Assigned: Unassigned » jec006
jec006’s picture

Issue tags: +lsd-csi blocker

Waiting on patch getting committed to Entity API #996696: Support revisions in Entity API.

thekellye’s picture

indytechcook’s picture

Version: » 7.x-1.x-dev

Part of this issue is to help that patch get in.

jec006’s picture

Assigned: jec006 » e2thex
indytechcook’s picture

I've tested the initial patch to Entity API and it works great.

e2thex’s picture

Assigned: e2thex » indytechcook
Status: Active » Needs review
FileSize
36.25 KB

all changes in 1676942

This replaces the node reaction that was in effect.
this requires the core patch from http://drupal.org/node/1730874#comment-6351058

We are changing all of the entity controllers for entities with revisions to use our EntityControllerWrapper. This Wrapper is a pass-though to the original controller, expect for the load method. in the load method it as the Entity_load_reaction to give it revision that should be load, and it pass those along to the load controller.

The reaction looks up the current revision id (from the base table) and then overrides that with values from the overrides.

indytechcook’s picture

Status: Needs review » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.