misd-service-development/phone-number-bundle — pull request #1 by jankramer (2013-09-05 15:43:18+00:00)
Title: Fix behavior of PhoneNumberToStringTransformer

The current implementation of ```PhoneNumberToStringTransformer::reverseTransform``` is incorrect: for each given string it should either return ```null``` or an instance of ```PhoneNumber```. If an error occurs while parsing the phone number, the transformer should throw a ```TransformationFailedException```. This will also automatically trigger the Form component to display a validation error.

The fact that it currently returns the input string when it can't parse it leads to strange behavior, especially when mapping to a property that is mapped as a doctrine phone_number type.