Replace deprecated doctrine methods in lib directory
[MAILPOET-3889]
This commit is contained in:
committed by
Veljko V
parent
efde80b5c4
commit
73a9bed483
@@ -79,10 +79,10 @@ abstract class Repository {
|
||||
public function truncate() {
|
||||
$tableName = $this->classMetadata->getTableName();
|
||||
$connection = $this->entityManager->getConnection();
|
||||
$connection->query('SET FOREIGN_KEY_CHECKS=0');
|
||||
$connection->executeQuery('SET FOREIGN_KEY_CHECKS=0');
|
||||
$q = "TRUNCATE $tableName";
|
||||
$connection->executeUpdate($q);
|
||||
$connection->query('SET FOREIGN_KEY_CHECKS=1');
|
||||
$connection->executeStatement($q);
|
||||
$connection->executeQuery('SET FOREIGN_KEY_CHECKS=1');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user