Skip to content

JoffreyPoreeCoding/symfony-object-mapper-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug Application for Symfony ObjectMapper

Step to reproduce the bug

  1. Clone this repository
  2. run composer install
  3. run symfony serve
  4. Make a POST request with data :
curl -X POST http://localhost:8000 -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"data": [{"value": "my_value"}]}'
  1. See that you have an error

Fixing

  1. Rename services.yaml into services.back.yaml
  2. Rename services.fixed.yaml into services.yaml
  3. Change new MapCollection() into MapCollection::class in DataDto.php
  4. Run the same request as previously
  5. See that it works fine
  6. Check you have pass thought setter value as value in final object of response

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages