属性 在 属性 路径“”映射时出现异常:属性 未在 "In2code\Femanager\Domain\Model\User" 类型的目标对象中找到

Exception while property mapping at property path "": Property was not found in target object of type "In2code\Femanager\Domain\Model\User"

我尝试使用新字段 customernumber 扩展 Extension femanager。我为该字段设置了 TCA 定义和模型。在 Typoscript 中,我设置了模型并将其映射到 fe_users.

config.tx_extbase{
    persistence{
        classes{
            In2\Femanager\Domain\Model\User {
                subclasses {
                    0 = FederhenSchneider\Extendfemanager\Domain\Model\User
                }
            }
            FederhenSchneider\Extendfemanager\Domain\Model\User {
                mapping {
                    tableName = fe_users
                    recordType = 0
                }
            }
        }
    }
    objects {
        In2\Femanager\Controller\NewController.className = FederhenSchneider\Extendfemanager\Controller\NewController
        In2\Femanager\Controller\EditController.className = FederhenSchneider\Extendfemanager\Controller\EditController

        In2\Femanager\Domain\Validator\ServersideValidator.className = FederhenSchneider\Extendfemanager\Domain\Validator\CustomServersideValidator
        In2\Femanager\Domain\Validator\ClientsideValidator.className = FederhenSchneider\Extendfemanager\Domain\Validator\CustomClientsideValidator
    }
}

plugin.tx_femanager {
    view {
        partialRootPaths {
            10 = EXT:extendfemanager/Resources/Private/Partials/
        }
    }
}

在后端,字段没问题。当我在前端发送公式时,出现此错误:

Exception while property mapping at property path "": Property "customernumber" was not found in target object of type "In2code\Femanager\Domain\Model\User".

我不明白为什么他要查看 In2Code 的模型而不是我的模型。

我的系统: PHP 7.0 打字错误3 7.6.18 Femanager 2.6.0

Femanager 2.6.0 使用 In2code\Femanager\Domain\Model\User(In2code 而不是 In2)作为命名空间。

更正错别字:

config.tx_extbase{
    persistence{
        classes{
            In2code\Femanager\Domain\Model\User {
                subclasses {
                    0 = FederhenSchneider\Extendfemanager\Domain\Model\User
                }
            }
            FederhenSchneider\Extendfemanager\Domain\Model\User {
                mapping {
                    tableName = fe_users
                    recordType = 0
                }
            }
        }
    }
    objects {
        In2code\Femanager\Controller\NewController.className = FederhenSchneider\Extendfemanager\Controller\NewController
        In2code\Femanager\Controller\EditController.className = FederhenSchneider\Extendfemanager\Controller\EditController

        In2code\Femanager\Domain\Validator\ServersideValidator.className = FederhenSchneider\Extendfemanager\Domain\Validator\CustomServersideValidator
        In2code\Femanager\Domain\Validator\ClientsideValidator.className = FederhenSchneider\Extendfemanager\Domain\Validator\CustomClientsideValidator
    }
}

plugin.tx_femanager {
    view {
        partialRootPaths {
            10 = EXT:extendfemanager/Resources/Private/Partials/
        }
    }
}