1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Do not cast BigInt to (int)

This commit is contained in:
Alexander 2011-11-08 09:47:33 +01:00
parent 6707129a3e
commit 0cc176aae2

View File

@ -212,7 +212,7 @@ class ProxyFactory
if ($this->isShortIdentifierGetter($method, $class)) {
$identifier = lcfirst(substr($method->getName(), 3));
$cast = in_array($class->fieldMappings[$identifier]['type'], array('integer', 'bigint', 'smallint')) ? '(int) ' : '';
$cast = in_array($class->fieldMappings[$identifier]['type'], array('integer', 'smallint')) ? '(int) ' : '';
$methods .= ' if ($this->__isInitialized__ === false) {' . "\n";
$methods .= ' return ' . $cast . '$this->_identifier["' . $identifier . '"];' . "\n";