Timeline for Truncate table using resource model in Magento 2
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 23, 2017 at 8:48 | comment | added | Bhavik | @MaxStsepantsevich getConnection() is DB adapter method, so no need to load collection for truncate any table. it's will use directly | |
Jan 23, 2017 at 8:38 | comment | added | Max | are you sure? what about dynamic index tables, flat tables, report tables? Are we need to trancate tables only using setup? I doubt it. We can use collection object as way to retrieve adapter for table and tablename for execute trancation but you can use other way to fetch this objects. | |
Jan 23, 2017 at 7:53 | history | answered | Bhavik | CC BY-SA 3.0 |