criteria - Yii critetia addCondition and addInCondition + and/or operators -
Is it possible in criteria & amp; Or operators between the upgradation and the addincondition? I have something like this: I do not know where I will be the operator Thank you. according to class references (': The third parameter is the operator that will be added to the current one, so it will be for you: $ criteria = new CDBCRITERIA; // If the value is TRUE $ criteria- & gt; Is the sum ('t.value = TRUE'); // If the value is wrong criteria- & gt; Plus ('t.value = FALSE'); $ Benchmarking & gt; AddInCondition ('t.id', $ array);
public CDbCriteria AddInCondition ( String $ column, array $ value, string $ operator = 'and')
$ criteria- & gt; addicondition ('TID', $ array, 'OR');
Comments
Post a Comment