I'm not sure what's up with your XML error -- I'll let someone else
respond to that.

Have you imported the annotation namespace at the top of your file?

use Doctrine\ORM\Mapping as ORM;

k

On Jun 4, 2011, at 8:29 AM, Dan Leech <dan.t.le...@gmail.com> wrote:

> Hello
>
> I just started a new project for fun with Symfony 2 Beta3 without
> vendors, but have problems getting Doctrine mapping to work
>
> 1. With XML
>
> Using XML I got the following error
>
>  [ErrorException]
>  Notice: Undefined index:
> Ylly\SiteMonBundle\Entity\Ylly\SiteMonBundle\Entity\SiteStatus in
> /home/daniel/www/yProxSiteMon/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php
> line 121
>
> I was pretty sure I followed the docs
>
> 2. With annotation
>
> The documentation shows @ORM\Entity as the correct syntax (btw. there
> is an error in the documentation as it contradicts itself after the
> example by instructing to use the old "@orm:") but I get this error:
>
> [Semantical Error] The annotation "@ORM\Entity" in class
> Ylly\SiteMonBundle\Entity\SiteStatus was never imported.
>
> Cheers
>
> dan
>
> --
> Dan Leech
>
> Web Developer
> www.dantleech.com
>
> --
> 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 developers" group.
> To post to this group, send email to symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to