This would be something like:

class User {
    /** @ORM\Id() @ORM\Column() */
    public $id;
    /** @ORM\OneToMany(targetEntity=Skill::class, mappedBy="user") */
    public $skills;
    public function __construct() { $this->skills = new ArrayCollection(); }
}

class Skill {
    /** @ORM\Id() @ORM\Column() */
    public $id;
    /** @ORM\ManyToOne(targetEntity=User::class, inversedBy="skills") */
    public $skills;
}



Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On Thu, Aug 23, 2018 at 9:37 PM <[email protected]> wrote:

> Tanks for your advises.
> I know SQL, but I dont understand the links in doctrine.
> More i visite website, more I am confused ...
> I wish only do a simple link.
> (See attached image)
>
> Thanks
>
> Le jeudi 23 août 2018 18:55:23 UTC+2, [email protected] a écrit :
>>
>> Hi,
>>
>> I read all I can read about this topic.
>> I try, try, try ...
>>
>> I want to create Users (named : abonnes)
>> And User can choose many training (formations), many skills (tags) and
>> many professional experiences (experience)
>> But JoinColumn never works ...
>>
>> I use Doctrine on Symfony
>>
>> Anyone can help me please ?
>> Thanks
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to