title: Where is the result of sum?
body: <p>I want to sum a field tiempo_acumulado for each tarea_id. I try this but dont work, is wrong or how can do this.</p>
  
  <pre><code>foreach ($idstareas as $idtarea)
      {    
      $sumatorio = $this-&gt;ProyectosCategoriasTareas-&gt;find();
      $sumatorio
          -&gt;select(['suma' =&gt; $sumatorio-&gt;func()-&gt;sum('tiempo_acumulado')])
          -&gt;where(['tarea_id'=&gt;$idtarea-&gt;id])
          -&gt;toArray();
      debug($sumatorio);
      die();
      }
  </code></pre>
  
  <p>I dont find suma or the result </p>