Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Propel/Generator/Model/PropelTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class PropelTypes
/**
* @var string
*/
public const BIGINT_NATIVE_TYPE = 'string';
public const BIGINT_NATIVE_TYPE = PHP_INT_SIZE === 8 ? 'int' : 'string';

/**
* @var string
Expand Down
4 changes: 2 additions & 2 deletions tests/Propel/Tests/Generator/Model/ColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ public function provideMappingNumericTypes()
['SMALLINT', 'int', true],
['TINYINT', 'int', true],
['INTEGER', 'int', true],
['BIGINT', 'string', false],
['BIGINT', PHP_INT_SIZE === 8 ? 'int' : 'string', PHP_INT_SIZE === 8],
['FLOAT', 'double', true],
['DOUBLE', 'double', true],
['NUMERIC', 'string', false],
Expand Down Expand Up @@ -741,7 +741,7 @@ public function testUuidType(string $columnType, string $phpType)
public function provideMappingUuidTypes()
{
return [
// column type, php type,
// column type, php type,
[PropelTypes::UUID, 'string'],
[PropelTypes::UUID_BINARY, 'string'],
];
Expand Down