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

1.0-dev: inserting associations causes error on Postgres #95

Open
acornforth opened this issue Mar 10, 2022 · 3 comments
Open

1.0-dev: inserting associations causes error on Postgres #95

acornforth opened this issue Mar 10, 2022 · 3 comments

Comments

@acornforth
Copy link

Looks like it could be an unintended consequence of the mapping changes in previous commits, and may only affect postgres, I'm not using this bundle with any other DB platforms at the moment so unable to confirm if it happens on Mysql, SQLite etc ...

(https://user-images.githubusercontent.com/4586381/157653353-4d1724d1-9249-46e6-aa12-ce9234b9ba86.png) exception

Originally posted by @acornforth in #93 (comment)

@natewiebe13
Copy link
Collaborator

This is likely caused by setting the ID strategy to AUTO, which was intended to make this more portable as Doctrine would then choose the appropriate method for setting the ID. I'll take a closer look and see what we can do here.

@acornforth
Copy link
Author

acornforth commented Mar 17, 2022

@natewiebe13 I tested this on postgres with IDENTITY strategy, and everything seems to behave as expected, it also when generating migrations, didn't drop the DEFAULT expression on the id column. I think this could be the way to go.

@acornforth
Copy link
Author

Fixed (theoretically) in #93

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

No branches or pull requests

2 participants