Truncate a table with doctrine

/** @var Connection $connection */
$connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('tx_mhplussalesjournal_domain_model_mhplussalesjournal');
$connection->truncate('tx_mhplussalesjournal_domain_model_mhplussalesjournal');

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.