Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mapping TYPO3 6.1:Extbase映射_Mapping_Typo3_Extbase - Fatal编程技术网

Mapping TYPO3 6.1:Extbase映射

Mapping TYPO3 6.1:Extbase映射,mapping,typo3,extbase,Mapping,Typo3,Extbase,我尝试映射tx\u formhandler\u日志。但它就是不起作用 在ext_tables.php中,我调用 $tmp_columns = Array ( "checkbox" => Array ( "exclude" => 1, "label" => "exported", "config" => Array ( "type" => "check", "siz

我尝试映射
tx\u formhandler\u日志
。但它就是不起作用

在ext_tables.php中,我调用

$tmp_columns = Array (
    "checkbox" => Array (
        "exclude" => 1,
        "label" => "exported",
        "config" => Array (
            "type" => "check",
            "size" => "1",
        )
    ),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_formhandler_log', $tmp_columns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_formhandler_log','checkbox;;;;1-1-1');
此外,我还在ext_typoscript_setup.txt中添加了

config.tx_extbase{
    persistence{
        classes{
            TYPO3\MyExt\Domain\Model\Log {
                mapping {
                    tableName = tx_formhandler_log
                    recordType =
                }
            }
        }
    }
 }
\TYPO3\MyExt\Domain\Model\Log
中,所有的setter都是getter

相同的配置在其他扩展中有效,但在我的扩展中不起作用。在我的扩展中,我有一个工作的
页面
映射,但是
tx\u formhandler\u log
-映射无法工作


我不明白,我忘记了什么。有人能帮我吗?

就像我在评论中写的:扩展列表中的顺序不对。在我想扩展
tx\u formhandler\u log
的那一刻,没有包括
formhandler
-扩展。我改变了顺序,一切都很好。

尝试检查它是否查询了表,如以下所示:。如果它试图从
tx\u formhandler\u log
中获取任何内容,请复制该语句并尝试在DB gui中运行它。另外,请完全删除
rcordType=
,因为您可能没有自己的记录类型供您参考!这不是一个错误的查询,而是扩展列表的顺序错误。在我想扩展
tx\u formhandler\u log
时,没有包括formhandler扩展。