- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
/**
* Геноцид.
*/
public function purgeProducts()
{
$command = Yii::app()->db->createCommand();
$command->truncateTable('tbl_catalogue_property_value');
$command->truncateTable('tbl_catalogue_property_value');
$command->truncateTable('tbl_catalogue_product_info');
$command->truncateTable('tbl_catalogue_product');
$command->truncateTable('tbl_products_to_features');
$command->truncateTable('tbl_catalogue_category_to_product');
$command->truncateTable('tbl_relation_material');
}