You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Divesh Dutta (JIRA)" <ji...@apache.org> on 2015/01/03 13:04:34 UTC
[jira] [Commented] (OFBIZ-3554) Delegator removeByXXX do not
trigger remove ECA
[ https://issues.apache.org/jira/browse/OFBIZ-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263512#comment-14263512 ]
Divesh Dutta commented on OFBIZ-3554:
-------------------------------------
Should we consider this as a bug? This question comes because, EECA rules does not work on storeByCondition and storeAll methods as well. And if this is a bug then, EECA rules should also work on storeByCondition and storeAll methods.
Currently EECA rules only triggers on store and removeValue methods.
> Delegator removeByXXX do not trigger remove ECA
> -----------------------------------------------
>
> Key: OFBIZ-3554
> URL: https://issues.apache.org/jira/browse/OFBIZ-3554
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 09.04, Trunk
> Reporter: Wickersheimer Jeremy
> Assignee: Adam Heath
>
> The removeByAnd / removeByCondition and by extension i think the removeAll methods do not trigger the remove ECA on the entities.
> So for example:
> {code:title=No trigger|borderStyle=solid}
> removeByAnd("FooBar", map);
> {code}
> Compared to:
> {code:title=With trigger|borderStyle=solid}
> List entities = delegator.findByAnd("FooBar", map);
> for (GenericValue v : entities) {
> delegator.removeValue(v);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)