phalcon orm model
查询列表
return User::query()
->where("app_id = {$app_id}")
->execute()->toArray();
查询单条
return User::findFirst([
"app_id = {$app_id}",
])->toArray();
orderBy
->orderBy("id desc")
andWhere
orWhere
->andWhere("muid = :muid: or oaid > :oaid:",
[
"muid" => $muid,
"oaid" => $oaid,
])
whereIn
->whereIn('status', [1,2])

浙公网安备 33010602011771号