Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2014 at 15:18 UTC
Updated:
18 Mar 2015 at 02:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gabesulliceComment #2
gabesulliceTaken from my commit message. Forgot that patches strip these out.
Summary:
Add removeTranslation and add getEntityBid methods
Override removeTranslation() method in EntityTranslationBeanHandler
because it uses getEntityId(), which returns the bean delta, not bid.
Since entitycache uses the entity id as its cache id, not delta,
deleting a translation does not take effect until all caches are
cleared.
In order to get the proper id, a new method getEntityBid() is added for
use by the new removetranslation().
Last, for entitycache to be reset, we need to extend
BeanEntityAPIController resetCache to call entitycache's resetEntityCache.
Comment #3
gabesulliceComment #4
indytechcook commentedThanks!