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.
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.