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 PostgreSQL problem with given ids #9

Merged
merged 8 commits into from
Jan 27, 2022

Conversation

blafasel42
Copy link
Contributor

Postgres Driver will throw an exception when using lastInsertId() when the insert before had a primary key field set. i modified the DBALConnect to just ignore that exception (assignId() will ignore the assign anyway when the id field is already present in $row).

Now this works for me. Hope i did not miss anything.

@blafasel42
Copy link
Contributor Author

added some fix for sf 5 and replaced faker reference to fakerphp/faker

@MontealegreLuis
Copy link
Member

Thank you @blafasel42!

I haven't had much time to continue working on this package. If you want to become a maintainer, please let me know.

@MontealegreLuis MontealegreLuis merged commit bdfa29d into ComPHPPuebla:master Jan 27, 2022
@blafasel42
Copy link
Contributor Author

blafasel42 commented Jan 27, 2022 via email

@MontealegreLuis
Copy link
Member

Awesome! Just sent you an invite @blafasel42.

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

Successfully merging this pull request may close these issues.

2 participants