title: How can I check in my database to see if a value of a column is being flushed more than once?
body: <p>The Symfony2 Documentation doesn’t seem to address this problem the ‘symfony way’. As in I want to find a solution using Doctrine to query the field.</p>
  
  <p>I want to write code to say… if (value is being added into database and the value already exists) then simply add ‘1’ to the ‘quantity’ field.</p>