public function delete(PlanInterface $plan) { $plan->setIsActive(false); $this->om->persist($plan); $this->om->flush(); return true; }
/** * @param Avro\StripeBundle\Model\PlanInterface */ public function delete(PlanInterface $plan) { $stripe_plan = $this->retrieve($plan->getId()); if ($stripe_plan) { $stripe_plan->delete(); } return true; }