Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: generated IDs are converted to integer #1346

Merged
merged 2 commits into from Mar 23, 2015
Merged

Fix: generated IDs are converted to integer #1346

merged 2 commits into from Mar 23, 2015

Conversation

pepakriz
Copy link
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

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
Member

Requires a test case

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

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

@pepakriz
Copy link
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.

None yet

4 participants