title: Doctrine: textarea line breaks & nl2br
body: <p>I'm pulling my hair out with something that should be very simple: getting line breaks to show up properly in text that's returned from the database with Doctrine 1.2</p>
  
  <p>I'm saving a message:</p>
  
  <pre><code>    $body = [text from a form textarea];
  
      $m = new Message();
      $m-&gt;setSubject($subject);
      $m-&gt;setBody($body);
      $m-&gt;save();
  </code></pre>
  
  <p>Querying the message:</p>
  
  <pre><code>$q = Doctrine_Query::create()
      -&gt;from('Message m')
      -&gt;where('m.message_id = ?', $id)
      -&gt;limit(1);
  $this-&gt;message = $q-&gt;execute(array(), Doctrine_Core::HYDRATE_ARRAY);
  </code></pre>
  
  <p>In my template:</p>
  
  <pre><code>echo $message[0]['body'] ... outputs the text without line breaks
  echo nl2br($message[0]['body']) ... no difference
  </code></pre>
  
  <p>... and I've tried every combination I could think of.</p>
  
  <p>Is Doctrine doing something to line breaks that's affecting this, or is there something that I'm just missing?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>