]> git.agnieray.net Git - galette.git/commit
Add and use isForeignKeyException, fix isDuplicateException
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 27 Nov 2023 13:05:18 +0000 (14:05 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 28 Nov 2023 13:19:26 +0000 (14:19 +0100)
commit5c928d5d06ec567c79c04320dd0452ccbc64291b
tree8da1785416b3a6467ea1910d9fed493a74e97f27
parent1db72d56c228a714b062cab884ffeb7e74f1d9f4
Add and use isForeignKeyException, fix isDuplicateException

PostgreSQL exception codes are different, while mysql are the same, but
we have distinct coees in errInfo[1] entry.

see:
- https://www.postgresql.org/docs/current/errcodes-appendix.html
- https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html

Add test on members removal
galette/lib/Galette/Core/Db.php
galette/lib/Galette/Core/MailingHistory.php
galette/lib/Galette/Entity/Group.php
galette/lib/Galette/Repository/Members.php
tests/Galette/Repository/tests/units/Members.php