Tag: validations
-
Symfony 2: Annoying Issue with Data Transformers, DateTime, Timezones and PHP.ini
I spent almost the entire day going through the low level code of Symfony 2 trying to determine a really obscure error with my code. The issue started from dealing with using a Time type for one of my columns and having the form validate it appropriately. Unfortunately, the error message that bubbled up did…
-
Symfony 2: Unit Testing Many-to-One Validations on Entities
From what I can tell, the Symfony 2 cookbook does not have a decent example for handling entity validations and unit testing. I looked around a bit for a good sample and found a decent answer over on Stackoverflow. But outside of setting up a base class for handling future validation test classes, the sample…
-
Symfony 2: Day 3 Test Drive
I created a new bundle for my application and am attempting to move towards a more serious mode of programming. Rather than working with your typical “Hello Worlds”, I decided to focus on a more complex test case that’ll help motivate me in getting a better feel for more advanced features.