public function getRelatedPages()
    {
        $pages = ArrayList::create();

        foreach ($this->Sets() as $documentSet) {
            /** @var DocumentSet $documentSet */
            $pages->add($documentSet->Page());
        }
        $pages->removeDuplicates();

        $this->extend('updateRelatedPages', $pages);

        return $pages;
    }
public function getRelatedPages()
    {
        $pages = ArrayList::create();

        foreach ($this->Sets() as $documentSet) {
            /** @var DocumentSet $documentSet */
            $pages->add($documentSet->Page());
        }
        $pages->removeDuplicates();

        $this->extend('updateRelatedPages', $pages);

        return $pages;
    }
public function getRelatedPages ( ) { $ pages = ArrayList :: create ( ) ; foreach ( $ this -> Sets ( ) as $ documentSet ) { /** @var DocumentSet $documentSet */ $ pages -> add ( $ documentSet -> Page ( ) ) ; } $ pages -> removeDuplicates ( ) ; $ this -> extend ( 'updateRelatedPages' , $ pages ) ; return $ pages ; }
Get a list of related pages for this document by going through the associated document sets

@return ArrayList
Get a list of related pages for this document by going through the associated document sets