/**
  * Returns entities found for given criteria
  *
  * @param array $criteria
  *
  * @return object
  */
 public function findBy(array $criteria)
 {
     return $this->repository->findBy($criteria);
 }
 /**
  * {@inheritDoc}
  */
 public function findBy(array $fields)
 {
     return $this->entityRepository->findBy($fields);
 }
 /**
  * {@inheritDoc}
  */
 public function findInvoiceItemsByInvoice(InvoiceInterface $invoice)
 {
     return $this->repository->findBy(array('invoice' => $invoice));
 }
 /**
  * @param string $subscriptionId
  * @return array
  */
 public function findBySubscriptionCustomerId($subscriptionPlanId)
 {
     return $this->repository->findBy(array('subscriptionPlanId' => $subscriptionPlanId));
 }
 /**
  * @param string $subscriptionId
  * @return array
  */
 public function findBySubscriptionTransactionId($subcriptionTransactionId)
 {
     return $this->repository->findBy(array('subcriptionTransactionId' => $subcriptionTransactionId));
 }