BlogExample:
authorJochen Rau <j.rau@web.de>
Fri, 27 Mar 2009 11:51:36 +0000 (11:51 +0000)
committerJochen Rau <j.rau@web.de>
Fri, 27 Mar 2009 11:51:36 +0000 (11:51 +0000)
* !!!Database table names have changed because of the folder structure
ExtBase:
* Big performance enhancement after profiling (cached Data Maps inside the ORM)

typo3/sysext/extbase/Classes/Persistence/Mapper/ObjectRelationalMapper.php

index 274943a..a57df82 100644 (file)
@@ -695,9 +695,7 @@ class Tx_ExtBase_Persistence_Mapper_ObjectRelationalMapper implements t3lib_Sing
         * @return boolean TRUE if the property is persistable (configured in $TCA)
         */
        public function isPersistableProperty($className, $propertyName) {
-               $dataMap = new Tx_ExtBase_Persistence_Mapper_DataMap($className);
-               $dataMap->initialize();
-               return $dataMap->isPersistableProperty($propertyName);
+               return $this->getDataMap($className)->isPersistableProperty($propertyName);
        }
 
        /**