/** * Fetch all Opus_Collection objects for this document. * * @return array An array of Opus_Collection objects. */ protected function _fetchCollection() { $collections = array(); if (false === is_null($this->isNewRecord())) { $ids = Opus_Collection::fetchCollectionIdsByDocumentId($this->getId()); foreach ($ids as $id) { $collection = new Opus_Collection($id); $collections[] = $collection; } } return $collections; }