[+BUGFIX] Extbase (Persistence): Added loadTCA() to ensure the $TCA is loaded in...
authorJochen Rau <j.rau@web.de>
Wed, 14 Oct 2009 07:55:48 +0000 (07:55 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 14 Oct 2009 07:55:48 +0000 (07:55 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMap.php

index 6f1daad..d3c3805 100644 (file)
@@ -111,6 +111,9 @@ class Tx_Extbase_Persistence_Mapper_DataMap {
         * @return void
         */
        protected function initialize(array $mapping) {
+               if (TYPO3_MODE === 'FE') {
+                       $GLOBALS['TSFE']->includeTCA();
+               }
                t3lib_div::loadTCA($this->getTableName());
                $columns = $GLOBALS['TCA'][$this->getTableName()]['columns'];
                $this->addCommonColumns();