|
@@ 431-437 (lines=7) @@
|
| 428 |
|
case 'array': |
| 429 |
|
$oldValueText = isset($class::$cols[$colName]['sourceArray'][$oldValue]) ? $class::$cols[$colName]['sourceArray'][$oldValue] : $oldValue; |
| 430 |
|
break; |
| 431 |
|
case 'relation': |
| 432 |
|
$relation = $class::getRelation($class::$cols[$colName]['relation']); |
| 433 |
|
$relModel = $relation['model']; |
| 434 |
|
$rel = $relModel::get($oldValue); |
| 435 |
|
if ($rel) { |
| 436 |
|
$oldValueText = $rel->name(); |
| 437 |
|
} |
| 438 |
|
} |
| 439 |
|
} |
| 440 |
|
$newValueText = $this->$colName; |
|
@@ 446-452 (lines=7) @@
|
| 443 |
|
case 'array': |
| 444 |
|
$newValueText = isset($class::$cols[$colName]['sourceArray'][$this->$colName]) ? $class::$cols[$colName]['sourceArray'][$this->$colName] : $this->$colName; |
| 445 |
|
break; |
| 446 |
|
case 'relation': |
| 447 |
|
$relation = $class::getRelation($class::$cols[$colName]['relation']); |
| 448 |
|
$relModel = $relation['model']; |
| 449 |
|
$rel = $relModel::get($this->$colName); |
| 450 |
|
if ($rel) { |
| 451 |
|
$newValueText = $rel->name(); |
| 452 |
|
} |
| 453 |
|
} |
| 454 |
|
} |
| 455 |
|
if (strlen($oldValueText) + strlen($newValueText) < 200) { |