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: $ 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);

I do not know where I will be the operator Thank you.

according to class references (':

  public CDbCriteria AddInCondition ( String $ column, array $ value, string $ operator = 'and')   

The third parameter is the operator that will be added to the current one, so it will be for you:

  $ criteria- & gt; addicondition ('TID', $ array, 'OR');    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -