[TYPO3-mvc] Problem getting an instance of an object in controller
Henjo Hoeksma
me at henjohoeksma.nl
Wed Apr 6 14:40:45 CEST 2011
Hi list,
I need to compare a XML posted object to an object in the database.
What I do is something like:
$rep = t3lib_div::makeInstance('Object_Repos');
$objectInDb = $rep->findByProperty('PropertyValue');
So far so good.
But when I want to remove this found object using:
$rep->remove($objectInDb);
this throws an error:
The object given to remove() was not of the type
(Tx_Ext_Domain_Model_Object) this repository manages.
Is this due to the new inject dependency ?
Thanks for your response!
Henjo
More information about the TYPO3-project-typo3v4mvc
mailing list