| @@ 125-136 (lines=12) @@ | ||
| 122 | * |
|
| 123 | * @return array |
|
| 124 | */ |
|
| 125 | public function getFields(): array |
|
| 126 | { |
|
| 127 | $fields = $this->reflection->getFields(); |
|
| 128 | ||
| 129 | foreach ($fields as $field => $type) { |
|
| 130 | if ($this->isAggregation($type)) { |
|
| 131 | unset($fields[$field]); |
|
| 132 | } |
|
| 133 | } |
|
| 134 | ||
| 135 | return $fields; |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * Default defined values. |
|
| @@ 161-172 (lines=12) @@ | ||
| 158 | /** |
|
| 159 | * {@inheritdoc} |
|
| 160 | */ |
|
| 161 | protected function getFields(): array |
|
| 162 | { |
|
| 163 | $fields = $this->reflection->getFields(); |
|
| 164 | ||
| 165 | foreach ($fields as $field => $type) { |
|
| 166 | if ($this->isRelation($type)) { |
|
| 167 | unset($fields[$field]); |
|
| 168 | } |
|
| 169 | } |
|
| 170 | ||
| 171 | return $fields; |
|
| 172 | } |
|
| 173 | ||
| 174 | /** |
|
| 175 | * Check if field schema/type defines relation. |
|