/** * @param \Generated\Shared\Transfer\DiscountVoucherTransfer $discountVoucherTransfer * @param \Orm\Zed\Discount\Persistence\SpyDiscountVoucher $voucherEntity * * @return void */ protected function hydrateDiscountVoucherEntity(DiscountVoucherTransfer $discountVoucherTransfer, SpyDiscountVoucher $voucherEntity) { $voucherEntity->fromArray($discountVoucherTransfer->toArray()); $voucherEntity->setIsActive(true); }