Thursday, January 27, 2011

Truncate Table with Doctrine

$doctrine = Doctrine_Manager::getInstance()->getCurrentConnection()->getDbh();
$doctrine->query('TRUNCATE TABLE tableName');
unset($doctrine);

No comments:

Post a Comment