|
@@ 475-481 (lines=7) @@
|
| 472 |
|
case 'array': |
| 473 |
|
$oldValueText = isset($class::$cols[$colName]['sourceArray'][$oldValue]) ? $class::$cols[$colName]['sourceArray'][$oldValue] : $oldValue; |
| 474 |
|
break; |
| 475 |
|
case 'relation': |
| 476 |
|
$relation = $class::getRelation($class::$cols[$colName]['relation']); |
| 477 |
|
$relModel = $relation['model']; |
| 478 |
|
$rel = $relModel::get($oldValue); |
| 479 |
|
if ($rel) { |
| 480 |
|
$oldValueText = $rel->name(); |
| 481 |
|
} |
| 482 |
|
} |
| 483 |
|
} |
| 484 |
|
$newValueText = $this->$colName; |
|
@@ 490-496 (lines=7) @@
|
| 487 |
|
case 'array': |
| 488 |
|
$newValueText = isset($class::$cols[$colName]['sourceArray'][$this->$colName]) ? $class::$cols[$colName]['sourceArray'][$this->$colName] : $this->$colName; |
| 489 |
|
break; |
| 490 |
|
case 'relation': |
| 491 |
|
$relation = $class::getRelation($class::$cols[$colName]['relation']); |
| 492 |
|
$relModel = $relation['model']; |
| 493 |
|
$rel = $relModel::get($this->$colName); |
| 494 |
|
if ($rel) { |
| 495 |
|
$newValueText = $rel->name(); |
| 496 |
|
} |
| 497 |
|
} |
| 498 |
|
} |
| 499 |
|
if (strlen($oldValueText) + strlen($newValueText) < 200) { |