@@ 1951-1953 (lines=3) @@ | ||
1948 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1949 | $mapping['name'] = '_id'; |
|
1950 | $this->identifier = $mapping['fieldName']; |
|
1951 | if (isset($mapping['strategy'])) { |
|
1952 | $this->generatorType = constant(ClassMetadata::class . '::GENERATOR_TYPE_' . strtoupper($mapping['strategy'])); |
|
1953 | } |
|
1954 | $this->generatorOptions = $mapping['options'] ?? array(); |
|
1955 | switch ($this->generatorType) { |
|
1956 | case self::GENERATOR_TYPE_AUTO: |
@@ 77-79 (lines=3) @@ | ||
74 | $inheritanceType = (string) $xmlRoot['inheritance-type']; |
|
75 | $class->setInheritanceType(constant(ClassMetadata::class . '::INHERITANCE_TYPE_' . $inheritanceType)); |
|
76 | } |
|
77 | if (isset($xmlRoot['change-tracking-policy'])) { |
|
78 | $class->setChangeTrackingPolicy(constant(ClassMetadata::class . '::CHANGETRACKING_' . strtoupper((string) $xmlRoot['change-tracking-policy']))); |
|
79 | } |
|
80 | if (isset($xmlRoot->{'discriminator-field'})) { |
|
81 | $discrField = $xmlRoot->{'discriminator-field'}; |
|
82 | /* XSD only allows for "name", which is consistent with association |