/** * Force all fields to use unsigned integers (if DB layer supports it). */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { $fieldDeclaration['length'] = 11; $fieldDeclaration['unsigned'] = true; return parent::getSQLDeclaration($fieldDeclaration, $platform); }
/** * Get SQL declaration * * @param array $fieldDeclaration Field declaration * @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform Platform * * @return string */ public function getSQLDeclaration(array $fieldDeclaration, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) { $fieldDeclaration['unsigned'] = true; return parent::getSQLDeclaration($fieldDeclaration, $platform); }