| @@ 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); |
|
| @@ 186-189 (lines=4) @@ | ||
| 183 | $value = null; |
|
| 184 | ||
| 185 | // if name starts with a underscore, it is a custom field, not mapped to the entity |
|
| 186 | if (substr($field->getName(), 0, 1) != '_') { |
|
| 187 | // get raw value from object |
|
| 188 | $value = $accessor->getValue($entity, $field->getName()); |
|
| 189 | } |
|
| 190 | if ($field instanceof EntityFieldInterface) { |
|
| 191 | $field->setEntity($entity); |
|
| 192 | } |
|