Commit 41e830ca authored by Jonathan H. Wage's avatar Jonathan H. Wage

Fixing sequence-generate in XmlDriver

parent de72db2a
...@@ -203,9 +203,9 @@ class XmlDriver extends AbstractFileDriver ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment