Merge commit 'upstream/master'
This commit is contained in:
commit
39a6c01978
@ -203,9 +203,9 @@ class XmlDriver extends AbstractFileDriver
|
|||||||
if (isset($idElement->{'sequence-generator'})) {
|
if (isset($idElement->{'sequence-generator'})) {
|
||||||
$seqGenerator = $idElement->{'sequence-generator'};
|
$seqGenerator = $idElement->{'sequence-generator'};
|
||||||
$metadata->setSequenceGeneratorDefinition(array(
|
$metadata->setSequenceGeneratorDefinition(array(
|
||||||
'sequenceName' => $seqGenerator->{'sequence-name'},
|
'sequenceName' => (string)$seqGenerator['sequence-name'],
|
||||||
'allocationSize' => $seqGenerator->{'allocation-size'},
|
'allocationSize' => (string)$seqGenerator['allocation-size'],
|
||||||
'initialValue' => $seqGeneratorAnnot->{'initial-value'}
|
'initialValue' => (string)$seqGeneratorAnnot['initial-value']
|
||||||
));
|
));
|
||||||
} else if (isset($idElement->{'table-generator'})) {
|
} else if (isset($idElement->{'table-generator'})) {
|
||||||
throw MappingException::tableIdGeneratorNotImplemented($className);
|
throw MappingException::tableIdGeneratorNotImplemented($className);
|
||||||
|
@ -53,7 +53,7 @@ class XmlExporter extends AbstractExporter
|
|||||||
|
|
||||||
$xml->addAttribute('xmlns', 'http://doctrine-project.org/schemas/orm/doctrine-mapping');
|
$xml->addAttribute('xmlns', 'http://doctrine-project.org/schemas/orm/doctrine-mapping');
|
||||||
$xml->addAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
$xml->addAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
||||||
$xml->addAttribute('xsi:schemaLocation', 'http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd');
|
$xml->addAttribute('xsi:schemaLocation', 'http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd');
|
||||||
|
|
||||||
if ($metadata->isMappedSuperclass) {
|
if ($metadata->isMappedSuperclass) {
|
||||||
$root = $xml->addChild('mapped-superclass');
|
$root = $xml->addChild('mapped-superclass');
|
||||||
|
Loading…
Reference in New Issue
Block a user