Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 26th, 2014  |  syntax: None  |  size: 5.96 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. namespace MyBundleEntity;
  3. use DoctrineORMMapping as ORM;
  4. use FOSUserBundleEntityUser as BaseUser;
  5. use SymfonyComponentValidatorConstraints as Assert;
  6. use MyBundleValidationConstraint as MyAssert;
  7.  
  8.  
  9. /**
  10.  * @ORMEntity
  11.  * @ORMHasLifecycleCallbacks
  12.  */
  13. class User extends BaseUser
  14. {
  15.  
  16.     /**
  17.      * @ORMId
  18.      * @ORMColumn(type="integer")
  19.      * @ORMgeneratedValue(strategy="AUTO")
  20.      */
  21.     protected $id;
  22.  
  23.     /**
  24.      * Get id
  25.      *
  26.      * @return integer $id
  27.      */
  28.     public function getId()
  29.     {
  30.         return $this->id;
  31.     }
  32.  
  33.     /**
  34.      * @var string $email
  35.      * @AssertNotBlank(groups={"registration"})
  36.      * @AssertEmail(groups={"registration"})
  37.      * @MyAssertUnique(groups={"registration"})
  38.      */
  39.     protected $email;
  40.    ....
  41.        
  42. in /myApp/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php at line 65    
  43. at ErrorHandler ->handle ('2', 'class_parents() [<a href='function.class-parents'>function.class-parents</a>]: Class does not exist and could not be loaded', '/myApp/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php', '223', array('name' => '', 'parentClasses' => array()))
  44. at class_parents ('')
  45. in /myApp/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php at line 223    
  46. at ClassMetadataFactory ->getParentClasses ('')
  47. in /myApp/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php at line 246    
  48. at ClassMetadataFactory ->loadMetadata ('')
  49. in /myApp/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php at line 170    
  50. at ClassMetadataFactory ->getMetadataFor ('')
  51. in /myApp/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php at line 257    
  52. at EntityManager ->getClassMetadata ('')
  53. in /myApp/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php at line 574    
  54. at EntityManager ->getRepository (null)
  55. in /myApp/src/comp/MyAppBundle/Validation/Constraint/UniqueValidator.php at line 21    
  56. at UniqueValidator ->isValid ('asdfasdf', object(Unique))
  57. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 176    
  58. at GraphWalker ->walkConstraint (object(Unique), 'asdfasdf', 'registration', 'data.email')
  59. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 136    
  60. at GraphWalker ->walkMember (object(PropertyMetadata), 'asdfasdf', 'registration', 'data.email', null)
  61. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 119    
  62. at GraphWalker ->walkProperty (object(ClassMetadata), 'email', object(User), 'registration', 'data.email', null)
  63. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 111    
  64. at GraphWalker ->walkObjectForGroup (object(ClassMetadata), object(User), 'registration', 'data')
  65. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 82    
  66. at GraphWalker ->walkObject (object(ClassMetadata), object(User), 'registration', 'data')
  67. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 162    
  68. at GraphWalker ->walkReference (object(User), 'registration', 'data', true)
  69. in /myApp/vendor/symfony/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php at line 125    
  70. at DelegatingValidator ::validateFormData (object(Form), object(ExecutionContext))
  71. at call_user_func (array('SymfonyComponentFormExtensionValidatorValidatorDelegatingValidator', 'validateFormData'), object(Form), object(ExecutionContext))
  72. in /myApp/vendor/symfony/src/Symfony/Component/Validator/Constraints/CallbackValidator.php at line 65    
  73. at CallbackValidator ->isValid (object(Form), object(Callback))
  74. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 176    
  75. at GraphWalker ->walkConstraint (object(Callback), object(Form), 'Default', '')
  76. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 104    
  77. at GraphWalker ->walkObjectForGroup (object(ClassMetadata), object(Form), 'Default', '')
  78. in /myApp/vendor/symfony/src/Symfony/Component/Validator/GraphWalker.php at line 82    
  79. at GraphWalker ->walkObject (object(ClassMetadata), object(Form), 'Default', '')
  80. in /myApp/vendor/symfony/src/Symfony/Component/Validator/Validator.php at line 62    
  81. at SymfonyComponentValidator{closure} (object(GraphWalker), 'Default')
  82. in /myApp/vendor/symfony/src/Symfony/Component/Validator/Validator.php at line 120    
  83. at Validator ->validateGraph (object(Form), object(Closure), null)
  84. in /myApp/vendor/symfony/src/Symfony/Component/Validator/Validator.php at line 65    
  85. at Validator ->validate (object(Form))
  86. in /myApp/vendor/symfony/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php at line 79    
  87. at DelegatingValidator ->validate (object(Form))
  88. in /myApp/vendor/symfony/src/Symfony/Component/Form/Form.php at line 556    
  89. at Form ->bind (array('firstname' => '', 'lastname' => '', 'username' => '', 'email' => 'asdfasdf', 'plainPassword' => array('Passwort' => '', 'Passwort wiederholen' => ''), 'code' => '', 'plan' => '10', 'phone' => '', 'street' => '', 'zip' => '', 'city' => '', 'country' => '1'))
  90. in /myApp/vendor/symfony/src/Symfony/Component/Form/Form.php at line 592    
  91. at Form ->bindRequest (object(Request))
  92. in /myApp/src/comp/MyAppBundle/Controller/IndexController.php at line 151    
  93. at IndexController ->registerAction ()
  94. at call_user_func_array (array(object(IndexController), 'registerAction'), array())
  95. in kernel.root_dir/cache/dev_local/classes.php at line 3905    
  96. at HttpKernel ->handleRaw (object(Request), '1')
  97. in kernel.root_dir/cache/dev_local/classes.php at line 3875    
  98. at HttpKernel ->handle (object(Request), '1', true)
  99. in kernel.root_dir/cache/dev_local/classes.php at line 4879    
  100. at HttpKernel ->handle (object(Request), '1', true)
  101. in kernel.root_dir/bootstrap.php.cache at line 547    
  102. at Kernel ->handle (object(Request))
  103. in /myApp/web/app_dev_local.php at line 10
  104.        
  105. at EntityManager ->getRepository (null)
  106. in /myApp/src/comp/MyAppBundle/Validation/Constraint/UniqueValidator.php at line 21    
  107. at UniqueValidator ->isValid ('asdfasdf', object(Unique))