0

我在表格文章中有两列

config.tx_extbase {
    persistence {
        classes {
            XY\Products\Domain\Model\Product {
                mapping {
                    tableName = artikel

                    columns {
                        uuid.mapOnProperty = uuid
                        inactive.mapOnProperty = inactive
                    }
                }
            }
        }
    }
}

我在域模型中有设置/获取。当我制作一个新对象时,我看到并可以设置它,uuidinactive它不起作用。它在 TYPO3 6 lts 中工作,但现在使用 TYPO3 7 LTS 系统说setInactive()找不到该功能。

我已经通过闪光灯和安装工具删除了缓存。我还可以做些什么?

似乎我不需要扩展 TCA,因为uuid. 所以这不可能是原因,它以前有效。

4

1 回答 1

1

问题出在其他地方。好吧,领域模型的自动加载器在那里加载所有文件。因此,如果您有 product.php 和制作 product.php-2015-05-23.php 的好人,那么 php 会同时加载并使用第二个。第二个不是新的获取/设置。天哪。

于 2016-09-14T19:35:44.233 回答