How to Truncate Table using CakePHP?

I want to truncate my Database Table, with CakePHP Model, I have used $this->Model->deleteAll code for the same, and it works fine.

Now, What i want is, next time whenever my new records are inserting, it should start ID with 1 only, which does not work with deleteAll function, so Is there any default CakePHP Syntax to make table Truncate ?

Let me know !

9
задан Brian Tompsett - 汤莱恩 27 June 2017 в 19:37
поделиться