回答編集履歴

1

PHPの文法上、連想配列のカッコは外せなかったはず

2017/07/24 07:32

投稿

maisumakun
maisumakun

スコア145186

test CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  ```php
6
6
 
7
- $orderQuery = $orderTable->find()->where('ID' => function($exp, $q) use($prefix) { return $exp->like('ID', "$prefix%"); })->all();
7
+ $orderQuery = $orderTable->find()->where(['ID' => function($exp, $q) use($prefix) { return $exp->like('ID', "$prefix%"); }])->all();
8
8
 
9
9
  ```