public function delete() { // TODO: optimize this down into a single SQL call foreach ($this as $object) { $object->delete(); } return $this; }