Closed bjornpost closed 11 years ago
Hi Lachlan,
Since delete() is now implemented in the DomainObject class, it supports deletion of single items. It would be great if a delete method was also available in the Collection class, so we can do things like this:
delete()
DomainObject
delete
$postsByAuthor = \Model\Post::findByAuthorId(1); $postsByAuthor->delete();
For now, we're using a workaround which is ugly: foreach-ing the posts and delete them one-by-one.
Implemented in 5a55c551b646f4c569ece79c2dfece208a50b5b8
Hi Lachlan,
Since
delete()
is now implemented in theDomainObject
class, it supports deletion of single items. It would be great if adelete
method was also available in the Collection class, so we can do things like this:For now, we're using a workaround which is ugly: foreach-ing the posts and delete them one-by-one.