@@ 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 | } |
@@ 221-227 (lines=7) @@ | ||
218 | return strcmp((string) $a1, (string) $a2); |
|
219 | }); |
|
220 | ||
221 | foreach ($properties as $property) { |
|
222 | if ($property instanceof FieldMetadata) { |
|
223 | $this->exportFieldMetadata($root, $metadata, $property); |
|
224 | } else if ($property instanceof AssociationMetadata) { |
|
225 | $this->exportAssociationMetadata($root, $metadata, $property); |
|
226 | } |
|
227 | } |
|
228 | ||
229 | if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks)>0) { |
|
230 | $lifecycleCallbacksXml = $root->addChild('lifecycle-callbacks'); |