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

SequenceGenerator crashes with non-numeric value encountered when using XML Driver #6682

Closed
alextech opened this issue Sep 3, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@alextech
Copy link
Contributor

alextech commented Sep 3, 2017

Using XML Driver causes crash at https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Id/SequenceGenerator.php#L81 during addition operation, because parser casts sequence parameters as strings, not integers.

Edit: because optional default values were missing.

alextech added a commit to alextech/doctrine2 that referenced this issue Sep 3, 2017
alextech added a commit to alextech/doctrine2 that referenced this issue Sep 3, 2017
alextech added a commit to alextech/doctrine2 that referenced this issue Sep 5, 2017
… for allocationSize and initialValue optional parameters.
alextech added a commit to alextech/doctrine2 that referenced this issue Sep 5, 2017
… for allocationSize and initialValue optional parameters.
lcobucci pushed a commit that referenced this issue Nov 26, 2017
Supply default values for allocationSize and initialValue optional parameters.

Related to: #6682
lcobucci pushed a commit to alextech/doctrine2 that referenced this issue Nov 26, 2017
Supply default values for allocationSize and initialValue optional parameters.

Related to: doctrine#6682
lcobucci added a commit that referenced this issue Nov 26, 2017
Supply default values for optional values in sequence mapping if omitted by driver.

Fixes: #6682
@lcobucci lcobucci self-assigned this Nov 26, 2017
@lcobucci lcobucci added the Bug label Nov 26, 2017
@lcobucci lcobucci added this to the 2.5.13 milestone Nov 26, 2017
maglnet pushed a commit to maglnet/doctrine2 that referenced this issue Oct 10, 2018
Supply default values for allocationSize and initialValue optional parameters.

Related to: doctrine#6682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants