Extbase - get created sql from query

后端 未结 8 1901
感动是毒
感动是毒 2020-12-01 21:35

i want to get some database tables from my typo3 extensions. The Extension is based on extbase.

The query always returns nothing but the data exists

I\'ve tr

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 22:40

    An easy way without changing any Typo3 core code and not mentioned in any forum so far is using the php "serialize()" method:

    $result = $query->execute();
    echo (serialize($result));
    

    In the result object you find the SQL query ("statement;" ...)

提交回复
热议问题