protected function deleteAuthorCascade(int $authorId) { $this->db->delete('hull_blog_author_photos', ['author' => $authorId]); $this->db->delete('hull_blog_author_owners', ['authorid' => $authorId]); }