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

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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