Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. LogicException:
  2. Data transformation failed.
  3. Spec: struct {
  4. addresses [ord]struct {
  5. id int
  6. city string{1…∞}
  7. street_name string{1…∞}
  8. street_number string{1…∞}
  9. apartment string
  10. entrance_number string
  11. floor string
  12. intercom_code string
  13. }
  14. restaurants struct {
  15. delivery [ord]struct {
  16. id int
  17. name string
  18. working_hours ?string
  19. online_payment_available bool
  20. coordinates ?struct {
  21. latitude float
  22. longitude float
  23. }
  24. }
  25. pickup [ord]struct {
  26. id int
  27. name string
  28. working_hours ?string
  29. online_payment_available bool
  30. coordinates ?struct {
  31. latitude float
  32. longitude float
  33. }
  34. }
  35. }
  36. }
  37. Errors: {
  38. "restaurants.delivery": [
  39. "invalid_value"
  40. ]
  41. }
  42. Value: {
  43. "addresses": [],
  44. "restaurants": {
  45. "pickup": [
  46. {},
  47. {},
  48. {}
  49. ]
  50. }
  51. }
  52.  
  53. at src/utils.php:178
  54. at App\Utils\DataTransformer->transform(array('addresses' => array(), 'restaurants' => array('pickup' => array(object(Restaurant), object(Restaurant), object(Restaurant)))), array('addresses' => array('ordered', object(ProcessedValueSanitizer)), 'restaurants' => array('delivery' => array('ordered', object(ProcessedValueSanitizer)), 'pickup' => array('ordered', object(ProcessedValueSanitizer)))))
  55. (src/controllers/web.php:115)
  56. at App\Controller\Web\VlpWebController->respondView('frontend/pages/order.twig', array('addresses' => array(), 'restaurants' => array('pickup' => array(object(Restaurant), object(Restaurant), object(Restaurant)))), array('addresses' => array('ordered', object(ProcessedValueSanitizer)), 'restaurants' => array('delivery' => array('ordered', object(ProcessedValueSanitizer)), 'pickup' => array('ordered', object(ProcessedValueSanitizer)))))
  57. (src/controllers/web.php:179)
  58. at App\Controller\Web\OrderController->order(object(VlpDataProvider), object(SelectedCityProvider))
  59. (feip/symfony/kernel.php:277)
  60. at Feip\Symfony\Kernel\FeipHttpKernel->Feip\Symfony\Kernel\{closure}()
  61. (feip/symfony/controllers.php:177)
  62. at Feip\Symfony\Controller\FeipWebController->processRequest(object(Request), 'order', object(Closure))
  63. (src/controllers/web.php:88)
  64. at App\Controller\Web\VlpWebController->processRequest(object(Request), 'order', object(Closure))
  65. (feip/symfony/controllers.php:266)
  66. at Feip\Symfony\Controller\ControllerRequestHandlerMiddleware->process(object(MiddlewareContext), object(Closure))
  67. (feip/symfony/kernel.php:273)
  68. at Feip\Symfony\Kernel\FeipHttpKernel->Feip\Symfony\Kernel\{closure}()
  69. (feip/symfony/controllers.php:295)
  70. at Feip\Symfony\Controller\TransactionMiddleware->process(object(MiddlewareContext), object(Closure))
  71. (feip/symfony/kernel.php:273)
  72. at Feip\Symfony\Kernel\FeipHttpKernel->Feip\Symfony\Kernel\{closure}()
  73. (feip/symfony/kernel.php:280)
  74. at Feip\Symfony\Kernel\FeipHttpKernel->handleRaw(object(Request), 1)
  75. (feip/symfony/kernel.php:216)
  76. at Feip\Symfony\Kernel\FeipHttpKernel->handle(object(Request), 1, true)
  77. (vendor/symfony/http-kernel/Kernel.php:198)
  78. at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
  79. (public/index.php:37)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement