[TYPO3-mvc] Clear repository - was: delete/truncate SQL statements
Martin Kutschker
masi-no at spam-typo3.org
Tue Jan 26 21:47:09 CET 2010
Martin Kutschker schrieb:
> Hi!
>
> I wanted to get rid of my demo data without having to use phpMyAdmin or the Mysql shell. So I tried
> to add a removeAll() method to my repositories. But I lost my way in the numerous classes of the
> persistence layer.
Maybe the reference to SQL was misleading. May main question/request is to clear/empty a repository.
Technically this would boil down to using either DELETE or TRUNCATE statements. But what else needs
to be done?
Besides and a clear() method I was thinking also of a purge() method. This would delete physically
all records marked as deleted. But maybe the shouldn't be part of the repository itself, but a part
of a repository service. I think that each repository should have its own service as only the
repository knows what data it stores and how in which tables.
Masi
More information about the TYPO3-project-typo3v4mvc
mailing list