jorisdugue/h5p-bundle

truncate postgresql table

Closed this issue ยท 2 comments

Hello,
i have tried to use this bundle with a postgresql database but H5PSymfony threw an error when trying to truncate tables because of SET FOREIGN_KEY_CHECKS which does not exist in posrgre.

One solution would be to test database platform before executing this statement.

Even better would be to switch private methods of services to protected so that we could override them in our app.

Hi @bpetitcollot,

This issue has been resolved ๐Ÿ˜„. I wrote the equivalent of foreign keys for postgresql

Thank you for reporting this bug, don't hesitate if you see another problem in the project