src/AbstractDataMapper.php 1 location
|
@@ 150-152 (lines=3) @@
|
| 147 |
|
if(method_exists($this, 'onBuild'.$propery )){ |
| 148 |
|
$value = $this->{'onBuild'.$propery}($field,$row); |
| 149 |
|
} |
| 150 |
|
elseif(is_string($field) && isset($row[strtolower($field)])){ |
| 151 |
|
$value = $row[strtolower($field)]; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
if($value!==false) |
| 155 |
|
$Entity->{$method_set}($value); |
src/AbstractOptDataMapper.php 1 location
|
@@ 121-123 (lines=3) @@
|
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
} |
| 121 |
|
elseif(is_string($field) && isset($row[strtolower($field)])){ |
| 122 |
|
$value = $row[strtolower($field)]; |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
if($value!==false) |
| 126 |
|
$Entity->{$method_set}($value); |