Completed
Push — master ( 38c7a9...cc14f9 )
by Michael
03:06
created

User::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use FOS\UserBundle\Model\User as BaseUser;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity
10
 * @ORM\Table(name="fos_user")
11
 */
12
class User extends BaseUser
13
{
14
    /**
15
     * @ORM\Id
16
     * @ORM\Column(type="integer")
17
     * @ORM\GeneratedValue(strategy="AUTO")
18
     */
19
    protected $id;
20
21
    /**
22
     * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Group")
23
     * @ORM\JoinTable(name="fos_user_user_group",
24
     *      joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
25
     *      inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}
26
     * )
27
     */
28
    protected $groups;
29
30
    public function __construct()
31
    {
32
        parent::__construct();
33
    }
34
}
35