/** * (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]); }
/** * @return \yii\db\ActiveQuery */ public function getMarries() { return $this->hasMany(Marry::className(), ['personal_id' => 'personal_id']); }