|
@@ 2654-2657 (lines=4) @@
|
| 2651 |
|
} |
| 2652 |
|
|
| 2653 |
|
// If we've just lazy-loaded the column, then we need to populate the $original array |
| 2654 |
|
if(isset($this->record[$fieldName.'_Lazy'])) { |
| 2655 |
|
$tableClass = $this->record[$fieldName.'_Lazy']; |
| 2656 |
|
$this->loadLazyFields($tableClass); |
| 2657 |
|
} |
| 2658 |
|
|
| 2659 |
|
// Situation 1: Passing an DBField |
| 2660 |
|
if($val instanceof DBField) { |
|
@@ 2463-2466 (lines=4) @@
|
| 2460 |
|
} |
| 2461 |
|
|
| 2462 |
|
// Do we have a field that needs to be lazy loaded? |
| 2463 |
|
if(isset($this->record[$field.'_Lazy'])) { |
| 2464 |
|
$tableClass = $this->record[$field.'_Lazy']; |
| 2465 |
|
$this->loadLazyFields($tableClass); |
| 2466 |
|
} |
| 2467 |
|
|
| 2468 |
|
// In case of complex fields, return the DBField object |
| 2469 |
|
if(self::is_composite_field($this->class, $field)) { |