Jay B Sat Jul 31 07:55:54 -0400 2010

Subject: Truncate table?

Hi guys,

How do I truncate a table with php.activerecord? Is it possible?

Thanks!


Kien La Sat Jul 31 17:31:45 -0400 2010

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');

Jay B Sun Aug 01 10:23:54 -0400 2010

Hi Kien, thanks a lot for your answer. Fantastic!

(1-2/2)