yii2 坑
主要记录下yii2 开发中的使用记录
打印sql
lsof -i tcp:8080
$query = User::find() ->where(['id'=>[1,2,3,4]) ->select(['username'])
// get the AR raw sql in YII2
$commandQuery = clone $query;
echo $commandQuery->createCommand()->getRawSql();
$users = $query->all();
COMPOSER_MEMORY_LIMIT=-1 composer require xxx
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: