title: How can I update an Entity in Symfony 4 and API Platform
body: <p>I'm using Symfony 4 with API Platform and I altered my existing Entity by adding some fields to it by running:</p>
  
  <pre><code>php bin/console Make:Entity
  </code></pre>
  
  <p>again.<br>
  After that I ran:</p>
  
  <pre><code>php bin/console doctrine:schema:update --force
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>php bin/console cache:clear
  </code></pre>
  
  <p>Then I copied the Entity and the Repository to the Server and cleaned the cache there also.
  After that I altered the SQL Table directly in the database reflecting the same as on my local side (where I ran migration).</p>
  
  <p>When I now open my Swagger Documentation by travelling to /symfonysite/api/ on the server,
  I can see the model altered correctly but the route examples (if you click on a route) does not reflect that.
  Also when I do a GET Request with Postman, it's only returning the old Entity reflecting the old Model without the new added fields.</p>
  
  <p>Can you point me out what is missing ?
  What is your way to alter an Entity on production site?</p>
  
  <p>Thanks in advice!</p>