[TYPO3-mvc] New PropertyMapper not respecting config.tx_extbase.objects?

Helmut Hummel helmut.hummel at typo3.org
Tue Jun 19 00:01:44 CEST 2012


Hi,

On 18.06.12 14:05, Kai wrote:

> By debugging I found out that the problem is in Tx_Extbase_Property_TypeConverter_PersistentObjectConverter::getTypeOfChildProperty(). This is called while mapping the field showCustomerDataOnCover. This method first looks in some unknown (for me) configuration for the definition for a $configuredTargetType. If none is found it loads the classSchema from reflection und tests if the property is defined in the class. The problem here is, that reflection allways get´s the schema for the Domain Model annotated in the controller action, which is Tx_SomeExt_Domain_Model_FrontendUser. But this is wrong because my TS configuration says it shoult use Tx_MyExt_Domain_Model_FrontendUser.
>
> Why is this so? Would be great if someone has some more detailed information on this...

Did you set the tx_extbase_type field correctly set for all records in 
the fe_users table? This is mandatory for single table inheritance.

If not, try

UPDATE fe_users SET tx_extbase_type='Tx_MyExt_Domain_Model_FrontendUser'

(at you own risk ;)

Kind regards,
Helmut

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 Core Developer, TYPO3 Security Team Leader

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list