Use Doctrine Platform to generate SQL query for table truncation.
adding unit test to truncate the table
Merge pull request #10745 from owncloud/fix-10708-doctrine

Use Doctrine Platform to generate SQL query for table truncation.