Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function compute(Registry $builder, Entity $entity) |
||
26 | { |
||
27 | $table = $builder->getTable($entity); |
||
28 | |||
29 | foreach ($entity->getFields() as $field) { |
||
30 | if ($field->hasTypecast() || !$table->hasColumn($field->getColumn())) { |
||
31 | continue; |
||
32 | } |
||
33 | |||
34 | $column = $table->column($field->getColumn()); |
||
35 | |||
36 | $field->setTypecast($this->typecast($column)); |
||
37 | } |
||
61 | } |