1
0
mirror of synced 2025-03-25 09:23:51 +03:00
This commit is contained in:
Fabio B. Silva 2012-08-19 22:43:27 -03:00 committed by fabio.silva
parent 4be25cb330
commit 6b7e588da5
2 changed files with 3 additions and 3 deletions

View File

@ -415,7 +415,7 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
} }
} }
/** /**
* Completes the ID generator mapping. If "auto" is specified we choose the generator * Completes the ID generator mapping. If "auto" is specified we choose the generator
* most appropriate for the targeted database platform. * most appropriate for the targeted database platform.
* *
@ -462,7 +462,7 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
$sequenceName = $this->em->getConfiguration()->getQuoteStrategy()->getSequenceName($definition, $class, $this->targetPlatform); $sequenceName = $this->em->getConfiguration()->getQuoteStrategy()->getSequenceName($definition, $class, $this->targetPlatform);
} }
$generator = ($fieldName && $class->fieldMappings[$fieldName]['type'] === "bigint") $generator = ($fieldName && $class->fieldMappings[$fieldName]['type'] === 'bigint')
? new BigIntegerIdentityGenerator($sequenceName) ? new BigIntegerIdentityGenerator($sequenceName)
: new IdentityGenerator($sequenceName); : new IdentityGenerator($sequenceName);

View File

@ -50,7 +50,7 @@ class DefaultEntityListenerResolver implements EntityListenerResolver
} }
/** /**
* {@inheritdoc}" * {@inheritdoc}
*/ */
public function register($object) public function register($object)
{ {