Skip to content

Instantly share code, notes, and snippets.

View czende's full-sized avatar
🎯
Focusing

Jan Czernin czende

🎯
Focusing
View GitHub Profile
@Ocramius
Ocramius / User.php
Last active July 24, 2024 14:38
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