Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: mohsen khashei
Added: Jan 30, 2019 10:54 AM
Modified: Jan 30, 2019 10:55 AM
Views: 22
Tags: rawsql
  1.  $model = CfApiFlightWays::find()
  2.                 ->select('*')
  3.                 ->where(['>=', 'departure_date', $postedData['from']])
  4.                 ->andWhere(['<=', 'departure_date', $postedData['to']])
  5.                 ->andWhere(['>=', 'departure_time', $fromT]);
  6. //                ->asArray()->all();
  7.         var_dump($model->createCommand()->getRawSql());
  8.         die();