Posted By

pogosheep on 06/14/11


debugging typo3 extbase

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Debug extbase-SQL-Querys

 / Published in: PHP


You can debug the EXTBASE-SQL-Querys by inserting the debug-Code into the File "typo3\sysext\extbase\Classes\Persistence\Storage\Typo3DbBackend.php". Search for the Method "buildQuery". That is where the querys are build. Insert your code and see the result. For Example, add the lines before the return-Statement. Change yourtablename to your table name. This will prevent you from dumping every Query. You just will see the querys for the specified table.

  1. if (in_array("your_table_name", $sql['tables'])) {
  2. var_dump($statement);
  3. print_r($statement);
  4. }

Report this snippet  

You need to login to post a comment.