rahulapatil@gmail.com
New Member
I ran into an issue while defining a join involving multiple join conditions and looking for help.
The "joins" tab in the lists allows us to define single join condition.
I have a need to add an additional join condition as explained below.
Table A with columns a,b,c and table B with columns a,b,d
So in defining the join I provided the condition as A.a = B.a
But I also need to define the additional condition as A.b = B.b
I added the below condition in php-events OnBuildQueryWhere:
$model->setPluginQueryWhere('exqual', "A.b = B.b");
On passing the fabrikdebug=1 URL parameter it shows that this condition is added in the "getJoinMergeTotalRecords" query but not in the "GetData" query.
How/where should I specify this so it works as expected?
The "joins" tab in the lists allows us to define single join condition.
I have a need to add an additional join condition as explained below.
Table A with columns a,b,c and table B with columns a,b,d
So in defining the join I provided the condition as A.a = B.a
But I also need to define the additional condition as A.b = B.b
I added the below condition in php-events OnBuildQueryWhere:
$model->setPluginQueryWhere('exqual', "A.b = B.b");
On passing the fabrikdebug=1 URL parameter it shows that this condition is added in the "getJoinMergeTotalRecords" query but not in the "GetData" query.
How/where should I specify this so it works as expected?