/**
  * Find the attachments for a block.
  *
  * @param ExhibitPageBlock $block
  * @return ExhibitBlockAttachment[]
  */
 public function findByBlock($block)
 {
     if (!$block->exists()) {
         return array();
     }
     $select = $this->getSelect()->where('exhibit_block_attachments.block_id = ?', $block->id);
     return $this->fetchObjects($select);
 }