id; } public function addRole(Role $role) { $this->roles[] = $role; $role->setUser($this); } public function addAuthorization(Authorization $authorization) { $this->authorizations[] = $authorization; $authorization->setUser($this); } }