* The annotation parsing process has been changed (it now uses Doctrine Common 3.0). All annotations which are used in a class must now be imported (just like you import PHP namespaces with the "use" statement):
Before: /** * @orm:Entity */ class MyUser { /** * @orm:Id * @orm:GeneratedValue(strategy = "AUTO") * @orm:Column(type="integer") * @var integer */ private $id; /** * @orm:Column(type="string", nullable=false) * @assert:NotBlank * @var string */ private $name; } After: use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity */ class MyUser { /** * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") * * @var integer */ private $id; /** * @ORM\Column(type="string", nullable=false) * @Assert\NotBlank * * @var string */ private $name; } 2011/5/23 keymaster <ad...@optionosophy.com> > I've switched everything over to @ORM\ and @Assert\ > > But not sure what the proper replacement is for @extra. > > Does it need to be changed also? > > If so, what class should we"use" ? > What should the new annotation form look like? > > Getting this error (worked fine in beta1): > > [1/2] AnnotationException: [Semantical Error] The annotation > "@extra:Route" in method > WCCore\StaticPagesBundle\Controller\StaticPagesController::displayAction() > was never imported. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en