sheadawson/silverstripe-news — comment on commit 76e29887279559f00e38d1a51b53c4df348e52e6
File:  line 0
By nyeholt:

For NewsArticle - instead of doing all articles, leave it just as the parents in the $urls array, then call

$this->extend('updatePagesAffected', $urls);

or similar.

Note that you'll need to declare the extension method using & to force byref passing of the array

updatePagesAffected(&$urls)