-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
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.
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. |
There was a problem hiding this 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.
There was a problem hiding this 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!
Thanks for your reviews! |
Part of #513, also includes a patch for #431, removes unused code and fixes some defects.