Advertisement
Guest User

Untitled

a guest
May 31st, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $command = Yii->createCommand($sql)
  2. if ($one) $command->addCondition($cond1);
  3. if ($two) $command->addCondition($cond2);
  4. $result = $command->queryAll();
  5.  
  6. db.coll.find({});
  7.  
  8. curs = myColl.find();
  9. if(cond1) {
  10. curs2 = curs.find({cond2})
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement