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

Port City DAO to use PDO #606

Merged
merged 9 commits into from
Jan 13, 2023
Merged

Port City DAO to use PDO #606

merged 9 commits into from
Jan 13, 2023

Conversation

jaragunde
Copy link
Member

Part of #513, also includes a patch for #431, removes unused code and fixes some defects.

We also remove unnecessary checks for row id in update and delete
operations.
This was used only inside the DAO, and we remove any uses of it. We
would re-add the function if we ever need it.
If constructor is missing, parent's will be called. No need to do that
explicitly. In PostgreSQLCityDAO the constructor is still necessary
because it needs to overwrite the BaseDAO constructor visibility.
Remove setValues() too, which was the last used in getAll() (through
BaseDAO::execute()).
This operation is never used; upper layers use
CommonEventDAO::getByCityId instead.
@anarute
Copy link
Member

anarute commented Jan 11, 2023

pinging @dmtrek14 so you can start reviewing too :) I don't expect you to understand everything, feel free to ask questions and use this PR to learn.

@anarute anarute requested a review from dmtrek14 January 11, 2023 11:55
Copy link
Collaborator

@dmtrek14 dmtrek14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaragunde and @anarute All of this looks good to me and looks like good code cleanup. I've done some testing locally to confirm there are no regressions and everything works well here.

Copy link
Member

@anarute anarute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also looks good to me, thanks for the cleaning up!

@jaragunde jaragunde merged commit b8ad544 into main Jan 13, 2023
@jaragunde jaragunde deleted the pdo-city-dao branch January 13, 2023 14:49
@jaragunde
Copy link
Member Author

Thanks for your reviews!

@jaragunde jaragunde mentioned this pull request Jan 13, 2023
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.

3 participants