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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -