mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
BaseArrayHelper updated
This commit is contained in:
@ -33,7 +33,7 @@ class BaseArrayHelper
|
||||
* 'id',
|
||||
* 'title',
|
||||
* // the key name in array result => property name
|
||||
* 'createTime' => 'create_time',
|
||||
* 'createTime' => 'created_at',
|
||||
* // the key name in array result => anonymous function
|
||||
* 'length' => function ($post) {
|
||||
* return strlen($post->content);
|
||||
|
Reference in New Issue
Block a user