mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-21 22:47:17 +01:00
fixed model serializtaion example
This commit is contained in:
@@ -52,8 +52,8 @@ interface Arrayable
|
||||
* 'email',
|
||||
* 'firstName' => 'first_name',
|
||||
* 'lastName' => 'last_name',
|
||||
* 'fullName' => function () {
|
||||
* return $this->first_name . ' ' . $this->last_name;
|
||||
* 'fullName' => function ($model) {
|
||||
* return $model->first_name . ' ' . $model->last_name;
|
||||
* },
|
||||
* ];
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user