Пример #1
0
 /**
  * (string) actionLog : 日志视图
  * @param   string $pid
  * @return  string
  */
 public function actionLog($pid)
 {
     /** @var Marry $model*/
     $model = Marry::findAll(['personal_id' => $pid]);
     return $this->render('@bedezign/yii2/audit/views/_audit_trails', ['query' => $model->getAuditTrails(), 'params' => ['AuditTrailSearch' => []], 'columns' => ['user_id', 'entry_id', 'action', 'field', 'old_value', 'new_value', 'created'], 'filter' => false]);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMarries()
 {
     return $this->hasMany(Marry::className(), ['personal_id' => 'personal_id']);
 }