Skip to content

Instantly share code, notes, and snippets.

View illodev's full-sized avatar
:shipit:
Focusing

Álvaro Jáuregui illodev

:shipit:
Focusing
View GitHub Profile
@illodev
illodev / User.php
Created June 10, 2021 20:14 — forked from Ocramius/User.php
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User