| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 47 | protected function formatRelationMappings($mappings, $associationMappings) |
||
| 48 | { |
||
| 49 | $types = $this->getTypes(); |
||
| 50 | |||
| 51 | foreach ($associationMappings as $fieldName => $relation) { |
||
| 52 | if ($relation['type'] !== ClassMetadataInfo::ONE_TO_MANY) { |
||
| 53 | $mappings[sprintf('%s_%s', $fieldName, 'id')] = $types['string']; |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | return $mappings; |
||
| 58 | } |
||
| 59 | |||
| 74 |