[TYPO3-mvc] Call to a member function registerReconstitutedObject() on a non-object

Sebastian Schreiber me at schreibersebastian.de
Mon May 10 09:48:02 CEST 2010


Dear List,
I got the this error:

Call to a member function registerReconstitutedObject() on a non-object

for the following Code:

$rowIterator = 
t3lib_div::makeInstance('Tx_Extbase_Persistence_RowIterator');
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))
{
     
$rowIterator->append(t3lib_div::makeInstance('Tx_Extbase_Persistence_Row', 
$row));
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
/* @var $dataMapper Tx_Extbase_Persistence_Mapper_DataMapper */
$dataMapper = 
Tx_Extbase_Dispatcher::getPersistenceManager()->getBackend()->getDataMapper();
$result = $dataMapper->map($this->objectType, $rowIterator);
return $result;

Any hints?
I think my Model is correct and the mapping should work correctly.

Many thanks in advanced.

-- 
Sebastian Schreiber

Sülzburgstraße 36
D-50937 Köln

T  0221 . 985 13 42
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 219 / 5302 / 2302




More information about the TYPO3-project-typo3v4mvc mailing list