title: Query each line of a multiple line text area
body: <p>This fails when dealing with 2n <code>$line</code> when doing a query 'isbn' field. But it works perfectly if I query 'id' field. I have tested data using data strictly from the table. Any idea why is this happening? Or how can I debug this?</p>
  
  <pre><code>$massife = $this-&gt;Massives-&gt;patchEntity($massife, $this-&gt;request-&gt;getData());
  $massiveTable = \Cake\ORM\TableRegistry::get('MassiveErrors', array('table' =&gt; 'massive_errors'));
  $lines = explode("\n", $massife-&gt;data);
  $documents = $this-&gt;loadModel('Documents');
  foreach($lines as $line){
      $document = $documents-&gt;find('all')-&gt;where(['isbn' =&gt; $line]);
      $row = $document-&gt;first();
      $massiveError = $massiveTable-&gt;newEntity();
      if(!empty($row)){
      $massiveError-&gt;document_id = $row-&gt;id;
      $massiveTable-&gt;save($massiveError);
  }
  </code></pre>