here is two criterias:
1:
[condition] => ( agegroupid=1) AND (methodid IN (:ycp0, :ycp1))
[params] => Array
(
[:ycp0] => 17
[:ycp1] => 18
)2:
[condition] => (methodid=:ycp0) AND (categoryid =0)
[params] => Array
(
[:ycp0] => 9
)i am using $criteria1->mergeWith($criteria2, false);
what i am getting:
[condition] => (( agegroupid=1) AND (methodid IN (:ycp0, :ycp1))) OR ((methodid=:ycp0) AND (categoryid =0))
[params] => Array
(
[:ycp0] => 9
[:ycp1] => 18
)they are merged with or: that is correct
but with params second one is overriding param of first one, i look inside merge function and found:
if($this->params!==$criteria->params) $this->params=array_merge($this->params,$criteria->params);
if it merges and in two different criteria's conditions key will start from the same key(:ycp0) and the second ones param will overried first ones. How to fix that? or i am using it incorrect?

Help














