public function removeAuthorsById(array $authorIds)
    {
        $aAuthors = $this->getArrayCopy();
        foreach ($aAuthors as $i => $author) {
            if (in_array($author->id, $authorIds)) {
                unset($aAuthors[$i]);
            }
        }

        $this->exchangeArray($aAuthors);
    }
public function removeAuthorsById(array $authorIds)
    {
        $aAuthors = $this->getArrayCopy();
        foreach ($aAuthors as $i => $author) {
            if (in_array($author->id, $authorIds)) {
                unset($aAuthors[$i]);
            }
        }

        $this->exchangeArray($aAuthors);
    }
public function removeAuthorsById ( array $ authorIds ) { $ aAuthors = $ this -> getArrayCopy ( ) ; foreach ( $ aAuthors as $ i => $ author ) { if ( in_array ( $ author -> id , $ authorIds ) ) { unset ( $ aAuthors [ $ i ] ) ; } } $ this -> exchangeArray ( $ aAuthors ) ; }
Removes authors from current collection with a list of Ids.

@param array $authorIds Author's Ids to remove from current collection
Removes authors from current collection with a list of Ids .