original_string: public function processBankTransfer(Transaction $transaction)
      {
          $transaction->setStatus(Transaction::STATUS_PENDING_TRANSFER);
          $pm = $this->manager->getRepository('EcommerceBundle:PaymentMethod')->findOneBySlug('bank-transfer-test');
          $transaction->setPaymentMethod($pm);
  
          $this->manager->persist($transaction);
          $this->manager->flush();
          
          return true;
      }
code: public function processBankTransfer(Transaction $transaction)
      {
          $transaction->setStatus(Transaction::STATUS_PENDING_TRANSFER);
          $pm = $this->manager->getRepository('EcommerceBundle:PaymentMethod')->findOneBySlug('bank-transfer-test');
          $transaction->setPaymentMethod($pm);
  
          $this->manager->persist($transaction);
          $this->manager->flush();
          
          return true;
      }
code_tokens: public function processBankTransfer ( Transaction $ transaction ) { $ transaction -> setStatus ( Transaction :: STATUS_PENDING_TRANSFER ) ; $ pm = $ this -> manager -> getRepository ( 'EcommerceBundle:PaymentMethod' ) -> findOneBySlug ( 'bank-transfer-test' ) ; $ transaction -> setPaymentMethod ( $ pm ) ; $ this -> manager -> persist ( $ transaction ) ; $ this -> manager -> flush ( ) ; return true ; }
docstring: Process a bank transfer request
  
  @param Transaction $transaction
docstring_tokens: Process a bank transfer request