Adding non-entity fields to your Symfony2 forms

use Symfony\Component\Validator\Constraints\True; // in your buildForm() method: $builder ->add("firstName", "text") ->add("lastName", "text") ->add("emailAddress", "email") ->add("t_and_c", "checkbox", array( "mapped" => false, "constraints" => new True(array( "message" => "Please accept the Terms and conditions in order to register") ), ) );

24 Cool PHP Libraries You Should Know About

http://tutorialzine.com/2013/02/24-cool-php-libraries-you-should-know-about/