On Wed, Jul 10, 2013 at 6:36 PM, Aaron Luman <[email protected]> wrote:

>     [Semantical Error] The annotation "@OneToMany" in property
> LVMount\LVMBundle\Entity\Product::$product_attributes was never imported.
> Did you maybe forget to add a "use" statement for this annotation?
>
> I have looked through the Doctrine docs and don't see any reference to a
> "use" statement for the ManyToOne/OneToMany pairings.  What is going on?
>



Ugh. They still haven't made that message "Semantic Error"?

You probably need to use @ORM\OneToMany and @ORM\ManyToOne instead.

Their documentation is a bit misleading, and almost always uses @Entity,
@Table, etc. Basically, you can either import your annotations one at a
time, via use statements at the top of the document, or you can import a
namespace full of 'em — like you seem to have done for @ORM. But if you
import just the namespace, you have to refer to everything by the
namespace-relative name in your annotations.

--justin

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to