Skip to content

Instantly share code, notes, and snippets.

Avatar

Dennis Langen Nijusan

View GitHub Profile
@Ocramius
Ocramius / User.php
Last active Aug 20, 2021
Doctrine 2 ManyToMany - the correct way
View User.php
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User