/**
  * @param \Bjr\BjrLend\Domain\Model\Reservation $reservation
  * @return \Bjr\BjrLend\Domain\Model\Organization
  */
 public function findByReservation(\Bjr\BjrLend\Domain\Model\Reservation $reservation)
 {
     $query = $this->createQuery();
     $organization = $query->matching($query->equals('articleFolderPid', $reservation->getPid()))->execute()->getFirst();
     return $organization;
 }
 /**
  * @test
  */
 public function listIssueDaysTest()
 {
     $this->fixture->setIssueStart(mktime(0, 0, 0, 5, 1, 2014));
     $this->fixture->setIssueEnd(mktime(0, 0, 0, 5, 6, 2014));
     $this->assertSame(array(), $this->fixture->listIssueDays());
 }