[Flow] Switch from DELETE to UPDATE column deleted
Carsten Bleicker
carsten at bleicker.de
Thu Apr 10 12:43:52 CEST 2014
Maybe somebody of the core devs could comment my idea because i dont know
if its a good/bad idea.
The idea:
As far as i know there is a eventListener available for doctrine wich provides
f.e. 'prePersist', 'preUpdate', 'postRemove' and maybe more.
So maybe you could use them do set all comments to deleted with an eventlistener
for your post domain object.
But as allways ... its just an idea.
Am 10.04.2014 um 12:33 schrieb Peter R <peter at webschuppen.com>:
> Thanks for the quick answer.
> I use stuff like this in my models, but i want to set the column/flag "deleted" to 1 if I delete a dataset.
> With onDelete="CASCADE" the whole dataset is gone, but I want to keep it.
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list