title: Symfony / api-platform PATCH NotEncodableValueException: "Syntax error"
body: <p>I use api-platform, GET and POST work's fine , i need to patch &quot;isFinished&quot; in my entity but i have an error :
  REQUES Uncaught PHP Exception Symfony\Component\Serializer\Exception\NotEncodableValueException: &quot;Syntax error&quot;</p>
  <p>Do you think my entity have bad configuration ?
  Thank you for help.</p>
  <pre><code>/**
   * @ApiResource()
   * @ORM\Entity(repositoryClass=CurrentJourneyRepository::class)
   *
   * @ApiResource(
   *     collectionOperations={
   *          &quot;get&quot;,
   *          &quot;post&quot;={&quot;access_control&quot;=&quot;is_granted('IS_AUTHENTICATED_ANONYMOUSLY')&quot;},
   *          &quot;patch&quot;
   *     },
   *     itemOperations={
   *          &quot;get&quot;,
   *          &quot;patch&quot;,
   *          &quot;put&quot;,
   *          &quot;delete&quot;={&quot;security&quot;=&quot;is_granted('ROLE_ADMIN')&quot;}
   *     },
   *     normalizationContext={&quot;groups&quot;={&quot;journey:read&quot;}},
   *     denormalizationContext={&quot;groups&quot;={&quot;journey:write&quot;}},
   *
   *
   * )
   * @ApiFilter(SearchFilter::class, properties={&quot;user&quot;,&quot;isFinished&quot;,&quot;treasureWay&quot;})
   */
  class CurrentJourney
  {
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type=&quot;integer&quot;)
     * @Groups({&quot;journey:read&quot;})
     */
    private $id;
  
    /**
     * @ORM\Column(type=&quot;integer&quot;, nullable=true)
     * @Groups({&quot;journey:read&quot;, &quot;journey:write&quot;})
     */
    private $try;
  
    /**
     * //    * @ORM\ManyToOne(targetEntity=User::class, inversedBy=&quot;currentJourneys&quot;)
     * @ORM\ManyToOne(targetEntity=User::class, inversedBy=&quot;waypoints&quot;)
     */
    private $user;
  
    /**
     * //    * @ORM\ManyToOne(targetEntity=Waypoint::class, inversedBy=&quot;currentJourneys&quot;)
     * @ORM\ManyToOne(targetEntity=Waypoint::class, inversedBy=&quot;users&quot;)
     */
    private $waypoint;
  
    /**
     * @ORM\Column(type=&quot;integer&quot;,options={&quot;default&quot;:&quot;0&quot;}) // integer: 0=abandonned ,1= in progress, 2= finished
     * @Groups({&quot;journey:read&quot;, &quot;journey:write&quot;})
     */
    private $isFinished;
  
    /**
     * @ORM\Column(type=&quot;datetime&quot;)
     */
    private $createdAt;
  
    /**
     * @ORM\ManyToOne(targetEntity=TreasureWay::class, inversedBy=&quot;currentJourneys&quot;)
     */
    private $treasureWay;
  </code></pre>