[TYPO3-mvc] how delete like mysql "where pos=1 AND list=2" ?

Martin Kutschker masi-no at spam-typo3.org
Tue Mar 16 15:54:36 CET 2010


Steffen Ritter schrieb:
> Am 16.03.2010 15:37, schrieb ralph:
>> hi, i try to figure out how to delete rows with a certain criteria when
>> i don't know the uid?
> where do you have "rows" and "uids" in an Object Structure.
>> i know how to query for them but how to write complex deletes/removes?
> same way :)
> 
> Query them, and put the object array via foreach into
> Repository->remove(object)
> Hope we sometime might pass an object array to remove to ;)

Or even better: a filter criteria object. Then you don't even need to fetch them. Note: that this
could lead to inconsistencies when you delete objects that are still in memory.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list