[Flow] Error "... name is already in use ..."
Aske Ertmann
aske at moc.net
Mon Mar 30 17:06:27 CEST 2015
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
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
--
Venlig hilsen Aske
Webudvikler, team lead
MOC A/S
4692 3435 / 4333 2200
moc.net
More information about the Flow
mailing list