Skip to content

Instantly share code, notes, and snippets.

@teimur8
teimur8 / User.php
Created December 27, 2019 08:50 — 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