1 | <?php |
||
20 | class User extends AbstractUser implements RelatedObjectInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | * @ORM\Column(name="id", type="string", length=24) |
||
25 | * @ORM\Id |
||
26 | * @ORM\GeneratedValue(strategy="NONE") |
||
27 | */ |
||
28 | protected $id; |
||
29 | |||
30 | /** |
||
31 | * @var string $username |
||
32 | * @ORM\Column(name="username", type="string") |
||
33 | */ |
||
34 | protected $username; |
||
35 | |||
36 | /** |
||
37 | * @var string $password |
||
38 | * @ORM\Column(name="password", type="string") |
||
39 | */ |
||
40 | protected $password; |
||
41 | |||
42 | /** |
||
43 | * @var string $salt |
||
44 | * @ORM\Column(name="salt", type="string") |
||
45 | */ |
||
46 | protected $salt; |
||
47 | |||
48 | /** |
||
49 | * @var string $email |
||
50 | * @ORM\Column(name="email", type="string") |
||
51 | */ |
||
52 | protected $email; |
||
53 | |||
54 | /** |
||
55 | * @var array $roles |
||
56 | * @ORM\Column(name="roles", type="json_array") |
||
57 | */ |
||
58 | protected $roles; |
||
59 | |||
60 | /** |
||
61 | * @var boolean $enabled |
||
62 | * @ORM\Column(name="enabled", type="boolean") |
||
63 | */ |
||
64 | protected $enabled = false; |
||
65 | |||
66 | /** |
||
67 | * @var \DateTime |
||
68 | * @ORM\Column(name="created_at", type="datetime", nullable=true) |
||
69 | */ |
||
70 | protected $createdAt; |
||
71 | |||
72 | public function __construct() |
||
73 | { |
||
74 | $this->id = new \MongoId(); |
||
|
|||
75 | $this->createdAt = new \DateTime(); |
||
76 | |||
77 | parent::__construct(); |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * @return \DateTime |
||
82 | */ |
||
83 | public function getCreatedAt() |
||
87 | |||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | public function getSecurityRelatedObjects() |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getRoleNamePart() |
||
103 | } |
||
104 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..