Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix: generated IDs are converted to integer#1346

Merged
Ocramius merged 2 commits into
doctrine:masterfrom
pepakriz:ids-casting
Mar 23, 2015
Merged

Fix: generated IDs are converted to integer#1346
Ocramius merged 2 commits into
doctrine:masterfrom
pepakriz:ids-casting

Conversation

@pepakriz
Copy link
Copy Markdown
Contributor

When I try to use type bigint and @GeneratedValue together, generated value is converted to integer.

See PHP documentation http://php.net/manual/en/language.types.array.php

Strings containing valid integers will be cast to the integer type. E.g. the key "8" will actually be stored under 8. On the other hand "08" will not be cast, as it isn't a valid decimal integer.

@doctrinebot
Copy link
Copy Markdown

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3634

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Copy Markdown
Member

Requires a test case

@Ocramius Ocramius merged commit e57be9d into doctrine:master Mar 23, 2015
@Ocramius
Copy link
Copy Markdown
Member

@pepakriz I've manually merged this after adding DDC3634Test 🚢

@pepakriz
Copy link
Copy Markdown
Contributor Author

👍 Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants