fixed model serializtaion example

This commit is contained in:
Carsten Brandt
2014-11-01 14:05:33 +01:00
parent 8ed9ce0c7f
commit ecb113f1d0
3 changed files with 6 additions and 6 deletions

View File

@ -841,8 +841,8 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
* '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;
* },
* ];
* ```