(1-2/2)
If you're working off master you can do:
YourModel::query('delete from table_name');
If not you'll have to do:
YourModel::connection()->query('delete from table_name');
Hi Kien, thanks a lot for your answer. Fantastic!
(1-2/2)
June 27 2010
August 1, 2012
Subject: Truncate table?
Hi guys,
How do I truncate a table with php.activerecord? Is it possible?
Thanks!