}
- public function getCreatedBy() {
- return $this->hasOne(Admin::class, ['id' => 'created_by']);
+ public function getCreatedAdmin() {
+ return $this->hasOne(Admin::class, ['id' => 'created_admin_id']);
}
}
'comment',
'created_at::datetime',
[
- 'attribute' => 'updated_by',
+ 'attribute' => 'created_admin_id',
'value' => function ($model) {
- return $model->createdBy->name_full;
+ return $model->createdAdmin->name_full;
}
],
],
],
'layout' => '{items}',
'showPageSummary' => true,
- 'layout' => '{items}',
]); ?>
\ No newline at end of file