2019-10-25 20:19:49 0 Comments Go Boy.Lee

Go vs PHP CLI Performance Compare Under Special Project Environment

A very interesting performance compare for Go and PHP CLI under special project environment, the result is very unexpected, it has certain reference significance in technology selection

Yii 2.0 Left Join Search Code Demo

Yii 2.0 Framework Left Join Search Code Demo

Yii 2.0 andFilterWhere null auto ignore

In Yii 2.0's search() function, if try use andFilterWhere and null together, the generated SQL will auto skip the null one, this topic show how to fix it.

In Yii 2.0 run save in ActiveRecord's AfterSave

In Yii 2.0 Framework, if run save in afterSave, will active new beforeSave and afterSave then endless loop, this topic show how to run save in afterSave without endless loop

Yii 2.0 use andWhere() Do and or query

In Yii 2.0 Framework, use andWhere() function run DB(MySQL) Query like A = 1 or B = 1

add custom error message to a model in Yii

add custom error message to a model in Yii 1.0 Framework

get error message in AR

when save fail for Yii 1.0 Framework's Active Record, we can use this way do some error debug.

ACtiveRecord support update multimodels

Rename ACtiveRecord $_POST array's Name to update multimodels