title: Symofny -'password' cannot be null
body: <p>I have implemented function to check my password length in register api call like..</p>
  
  <pre><code>if($password){
      $this-&gt;validatePassword($password);
      }
  </code></pre>
  
  <p>from other api call..</p>
  
  <pre><code>public function validatePassword($password)
  {
      if (strlen($password) &lt; 6)
      {
          throw new PasswordLength('Password must be minimum 6 characters long!');
      }
  }
  </code></pre>
  
  <p>and in my postman I am not returning an empty field but I keep getting error</p>
  
  <blockquote>
    <p>Integrity constraint violation: 1048 Column 'password' cannot be null</p>
  </blockquote>