public function getFiles(Array $criteria = array(), Array $orderBy = NULL) {
    $files = new \Psc\Data\ArrayCollection(
      $this->manager->getRepository()->findBy($criteria, $orderBy)
    );
    
    foreach ($files as $file) {
      $this->manager->attach($file);
    }
    
    return $files;
  }