[symfony2] Added assertion in the creation process