title: Symfony add new data to retrieved object
body: <p>I store my object data in a DB as ids. Say I have the following field stored in db as string:</p>
  
  <pre><code>2,3
  </code></pre>
  
  <p>and the following array stored some where in other place:</p>
  
  <pre><code>1 =&gt; low,
  2 =&gt; medium,
  3 =&gt; high
  </code></pre>
  
  <p>So when I retrieve this field in my twig template </p>
  
  <pre><code>{{ myobject.field }}
  </code></pre>
  
  <p>I get only 2,3, but I need something like</p>
  
  <pre><code>2 - medium, 3 - high
  </code></pre>
  
  <p>So I need to edit the data got in {{ myobject.field }} and add more info to it. What is the propoer way to do it with the help of Symfony? Is there something better than to manually reset object fields in foreach loop and overwrite the data stored there?</p>
  
  <p>Thank you.</p>