Code Duplication    Length = 4-4 lines in 2 locations

model/DataObject.php 2 locations

@@ 2477-2480 (lines=4) @@
2474
		}
2475
2476
		// Do we have a field that needs to be lazy loaded?
2477
		if(isset($this->record[$field.'_Lazy'])) {
2478
			$tableClass = $this->record[$field.'_Lazy'];
2479
			$this->loadLazyFields($tableClass);
2480
		}
2481
2482
		// In case of complex fields, return the DBField object
2483
		if(self::is_composite_field($this->class, $field)) {
@@ 2667-2670 (lines=4) @@
2664
		}
2665
2666
		// If we've just lazy-loaded the column, then we need to populate the $original array
2667
		if(isset($this->record[$fieldName.'_Lazy'])) {
2668
			$tableClass = $this->record[$fieldName.'_Lazy'];
2669
			$this->loadLazyFields($tableClass);
2670
		}
2671
2672
		// Situation 1: Passing an DBField
2673
		if($val instanceof DBField) {