| @@ 42-45 (lines=4) @@ | ||
| 39 | foreach ($this->fields as $field) { |
|
| 40 | $value = null; |
|
| 41 | // if name starts with a underscore, it is a custom field, not mapped to the entity |
|
| 42 | if (substr($field->getName(), 0, 1) != '_') { |
|
| 43 | // get raw value from object |
|
| 44 | $value = $accessor->getValue($this->entity, $field->getName()); |
|
| 45 | } |
|
| 46 | // if the field required an entity to be rendered, we set it |
|
| 47 | if ($field instanceof EntityFieldInterface) { |
|
| 48 | $field->setEntity($this->entity); |
|
| @@ 173-176 (lines=4) @@ | ||
| 170 | ->getPropertyAccessor(); |
|
| 171 | $value = null; |
|
| 172 | // if name starts with a underscore, it is a custom field, not mapped to the entity |
|
| 173 | if (substr($field->getName(), 0, 1) != '_') { |
|
| 174 | // get raw value from object |
|
| 175 | $value = $accessor->getValue($entity, $field->getName()); |
|
| 176 | } |
|
| 177 | if ($field instanceof EntityFieldInterface) { |
|
| 178 | $field->setEntity($entity); |
|
| 179 | } |
|