Do not cast BigInt to (int)
This commit is contained in:
parent
6707129a3e
commit
0cc176aae2
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue