title: Using $hash for the method setParameter()
body: <p>I would like to find out if the user is logged in.</p>
  
  <pre><code>public function findByExampleField($data) {
      return $this-&gt;createQueryBuilder('u')
          -&gt;select('u.email, u.password')
          -&gt;where('u.email = :email')
          -&gt;andWhere('u.password = :password')
          -&gt;setParameter('email', $data['email'])
          -&gt;setParameter('password', $data['password']) // &lt;-- the problem
          -&gt;setMaxResults(10)
          -&gt;getQuery()
          -&gt;getResult()
      ;
  }
  </code></pre>
  
  <p>Since the password is hashed, I need to verify it first. In this case I need to use <code>password_verify($data['password'], $hash)</code>. My problem is the second parameter. How can I declare the variable <code>$hash</code>?</p>