title: Get data from multiple rows
body: <p>I would like to get the value of the column <code>uid</code> from <strong>all</strong> rows where the value of the column <code>city</code> is <code>london</code>.</p>
  
  <p>I have tried it like this:</p>
  
  <pre><code>$this-&gt;getDoctrine()-&gt;getRepository(Personal::class)-&gt;findOneBy(['city' =&gt; 'london']);
  </code></pre>
  
  <p>but then I get an object from only 1 row. What I need is simply an array that looks kind of like this:</p>
  
  <blockquote>
    <p>array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }</p>
  </blockquote>