[Flow] Error "... name is already in use ..."
Tomas M
flow at 46dev.de
Tue Mar 31 08:30:44 CEST 2015
Hello Aske,
thank you for your reply!
I've helped myself by deleting all files and rebuild the classes step by step.
Now die construction works fine. I really don't know where is the
difference between this two versions. I think there is none.
The importent thing: it works ;-)
Cheers, Tomas
Quote: Aske Ertmann wrote on Mon, 30 March 2015 17:06
----------------------------------------------------
> Hi Tomas
>
> Would be helpful with snippets of the actual code.
>
> Anyway make sure the use statements are the same.
>
> On Tue, Mar 24, 2015 at 4:04 PM, Tomas M <flow (at) 46dev.de> wrote:
>
> > Hi members!
> >
> > I'm new in this forum and here ist my first question about Flow.
> >
> > I've defined a class with several protected properties each with some
> > validation annotations and ORM mappings.
> >
> > Therefor I use
> >
> > use TYPO3\Flow\Annotations as Flow;
> > use Doctrine\ORM\Mapping as ORM;
> >
> > This works fine.
> >
> > In a second step I've defined a new class which extends the first class
> > with only
> > one more property. If I want to use there the annotation and import it
> > like above,
> > i get i.e. an error like
> >
> > "Cannot use Doctrine\ORM\Mapping as ORM because the name is already in use
> > in..."
> >
> > If don't use the "use" I get a message like
> >
> > " [Semantical Error] The annotation "@ORM\ManyToOne" in property".
> >
> > What is wrong with this?
> > Does someone haven an idea?
> >
> > Thanks!
> > Tomas
>
>
>
> --
> Venlig hilsen Aske
>
> Webudvikler, team lead
> MOC A/S
> 4692 3435 / 4333 2200
> moc.net
----------------------------------------------------
More information about the Flow
mailing list