Typo3错误:属性的ColumnMap丢失 [英] Typo3 Error: The ColumnMap for property is missing

查看:90
本文介绍了Typo3错误:属性的ColumnMap丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Typo3版本8.7.8,并且正在开发扩展. 两个表"auftrag"和"verstorbener"是具有1:n关系的连接. 我尝试在"auftrag"存储库中的"verstorbener"表中搜索一个字段.两者之间的关系是必须的.

I'm using Typo3 version 8.7.8 and I'm developing an extention. The two tables "auftrag" and "verstorbener" are connectet with a 1:n relation. I try to search for a field in the table "verstorbener" in the repository of "auftrag". The relation of both is necessary.

如果我尝试执行以下查询,则会收到错误缺少类"... \ Auftrag"的属性"verstorbener"的列映射."

If I try to execute the following query I get the error "The ColumnMap for property "verstorbener" of class "...\Auftrag" is missing."

$name = "Mustermann";
		
$query->matching(
			$query->logicalAnd(
      $query->equals('verstorbener.nachname', $name)
			)
		);

我该如何解决这个问题? 如果您需要更多输入,请随时提出要求.

How can I solve this problem? If you need more input feel free to ask for it.

编辑-"auftrag"中"verst_id"字段的相关TCA代码,其中包含"verstorbener"的UID:

    'verst_id' => [
        'exclude' => true,
        'label' => 'LLL:EXT:.../locallang_db.xlf:auftrag.verst_id',
        'config' => [
            'type' => 'inline',
            'foreign_table' => 'verstorbener',
            'foreign_field' => 'uid',
            'minitems' => 0,
            'maxitems' => 1,
            'appearance' => [
                'collapseAll' => 0,
                'levelLinksPosition' => 'top',
                'showSynchronizationLink' => 1,
                'showPossibleLocalizationRecords' => 1,
                'showAllLocalizationLink' => 1
            ],
        ],
    ],

编辑-这是对象模型

/**
 * verstId
 *
 * @var \...\Domain\Model\Verstorbener
 */
protected $verstId = null;

/**
 * Returns the verstId
 *
 * @return \...\Domain\Model\Verstorbener $verstId
 */
public function getVerstId()
{
    return $this->verstId;
}

/**
 * Sets the verstId
 *
 * @param \...\Domain\Model\Verstorbener $verstId
 * @return void
 */
public function setVerstId(\...\Domain\Model\Verstorbener $verstId)
{
    $this->verstId = $verstId;
}

推荐答案

我已经解决了这个问题. 似乎在Typo3缓存中放置了一些旧数据. 清除后端或安装程序中的缓存无济于事. 我已经手动卸载并重新安装了扩展程序.

I've solved the problem. It seems like there layd some old data in the Typo3 cache. Clearing cache in the backend or in the installer doesn't helped. I had uninstall and reinstall the extension by hand.

这篇关于Typo3错误:属性的ColumnMap丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆