foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Can I really truncate a table?

Open nyssLab opened this issue 3 years ago • 1 comments

This is more of a question or feature request, than an issue.

I couldn't find it in the docs, so is it possible to truncate a table using Factories?

and by that I mean: TRUNCATE TABLE table_name and not DELETE FROM table_name

I want to be able to reset the IDs of a table.

nyssLab avatar Apr 08 '22 10:04 nyssLab

Unfortunately, no, Doctrine doesn't allow this out of the box. You can see some of the complexities required here.

kbond avatar Apr 08 '22 12:04 kbond