| @@ 220-226 (lines=7) @@ | ||
| 217 | return strcmp((string) $a1, (string) $a2); |
|
| 218 | }); |
|
| 219 | ||
| 220 | foreach ($properties as $property) { |
|
| 221 | if ($property instanceof FieldMetadata) { |
|
| 222 | $this->exportFieldMetadata($root, $metadata, $property); |
|
| 223 | } else if ($property instanceof AssociationMetadata) { |
|
| 224 | $this->exportAssociationMetadata($root, $metadata, $property); |
|
| 225 | } |
|
| 226 | } |
|
| 227 | ||
| 228 | if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks)>0) { |
|
| 229 | $lifecycleCallbacksXml = $root->addChild('lifecycle-callbacks'); |
|
| @@ 149-155 (lines=7) @@ | ||
| 146 | $lines[] = '$metadata->setIdGeneratorType(Mapping\GeneratorType::' . $metadata->generatorType . ');'; |
|
| 147 | } |
|
| 148 | ||
| 149 | foreach ($metadata->getProperties() as $property) { |
|
| 150 | if ($property instanceof FieldMetadata) { |
|
| 151 | $this->exportFieldMetadata($metadata, $property, $lines); |
|
| 152 | } else if ($property instanceof AssociationMetadata) { |
|
| 153 | $this->exportAssociationMetadata($metadata, $property, $lines); |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | return implode(PHP_EOL, $lines); |
|
| 158 | } |
|