Propel PHP indexing returns only first array
<p>I'm trying to use Propel's ORM system to create an Api.
Everything works fine but I would need the return to be indexed by file_id instead of the 0,1,2,3,4</p>

<p>Propel has a built in function for this</p>

<pre><code>$files = FilesQuery::create()-&gt;find()-&gt;toArray('file_id');
</code></pre>

<p>While there are 5 arrays within <strong>$files</strong> it returns only the first array within <strong>$files</strong> indexed properly.</p>

<p>Anyone any idea why this is happening?</p>