User
extends User
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_users'
- #[TableAlias]
- 'user'
Table of Contents
Properties
- $aboutMe : string|null
- $activated : bool
- $activationExpires : DateTime|null
- $activationKey : string
- $affiliateDisabled : bool
- $assetPath : string|null
- $banned : bool
- $city : string|null
- $companyName : string|null
- $country : string|null
- $countryCode : string|null
- $credits : int
- $deletedAt : DateTime|null
- $deletionClaimedAt : DateTime|null
- $deletionNonce : string|null
- $deletionRequestedAt : DateTime|null
- $deletionTokenExpires : DateTime|null
- $deletionTokenHash : string|null
- $discount : int
- $discountLevelId : int|null
- $email : string|null
- $externalId : string|null
- $firstname : string
- $id : int|null
- $ip : string|null
- $isCompany : bool
- $languageId : int|null
- $lastname : string
- $memberUntil : DateTime|null
- $parentUserId : int|null
- $password : string
- $passwordResetExpires : DateTime|null
- $passwordResetHash : string|null
- $paymentRegionId : int|null
- $phone : string|null
- $points : int
- $ratingThreadId : int|null
- $referralCode : string|null
- $referrerCode : string|null
- $referrerUserId : int|null
- $regId : string|null
- $regionId : int|null
- $registrationDatetime : DateTime|null
- $salt : string
- $state : string|null
- $street : string|null
- $type : string
- $url : string|null
- $username : string
- $userRoles : Collection
- $userTypeId : int|null
- $vatId : string|null
- $zip : string|null
- $assetFile : FtpAsset|null
- Transient cache of the derived `FtpAsset` (not a database column).
Methods
- __construct() : mixed
- addUserRole() : $this
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAboutMe() : string|null
- getActivated() : bool
- getActivationExpires() : DateTime|null
- getActivationKey() : string
- getAffiliateDisabled() : bool
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getAssetFile() : FtpAsset|null
- Returns the `FtpAsset` derived from the path (lazy, works after Doctrine hydration too).
- getAssetPath() : string|null
- getBanned() : bool
- getCity() : string|null
- getCompanyName() : string|null
- getCountry() : string|null
- getCountryCode() : string|null
- getCredits() : int
- getDeletedAt() : DateTime|null
- getDeletionClaimedAt() : DateTime|null
- getDeletionNonce() : string|null
- getDeletionRequestedAt() : DateTime|null
- getDeletionTokenExpires() : DateTime|null
- getDeletionTokenHash() : string|null
- getDiscount() : int
- getDiscountLevelId() : int|null
- getEmail() : string|null
- getExternalId() : string|null
- getFirstname() : string
- getId() : int|null
- getIp() : string|null
- getLanguageId() : int|null
- getLastname() : string
- getMemberUntil() : DateTime|null
- getParentUserId() : int|null
- getPassword() : string
- getPasswordResetExpires() : DateTime|null
- getPasswordResetHash() : string|null
- getPaymentRegionId() : int|null
- getPhone() : string|null
- getPoints() : int
- getRatingThreadId() : int|null
- getReferralCode() : string|null
- getReferrerCode() : string|null
- getReferrerUserId() : int|null
- getRegId() : string|null
- getRegionId() : int|null
- getRegistrationDatetime() : DateTime|null
- getSalt() : string
- getState() : string|null
- getStreet() : string|null
- getType() : string
- getUrl() : string|null
- getUsername() : string
- getUserRoles() : Collection<int, TRole>
- Roles of the user: a single collection `$userRoles` (mapped by the ORM in the Api layer, `#[Transient]` protects it from being overwritten on an admin save). Keep it single: a second unmapped collection made the getter return empty roles (JWT `role` claim and bridge payload without roles), hence `UserRelationManager` syncs the relations set-based over DBAL.
- getUserTypeId() : int|null
- getVatId() : string|null
- getZip() : string|null
- isActivated() : bool
- isAffiliateDisabled() : bool
- isBanned() : bool
- isCompany() : bool
- isDeleted() : bool
- Anonymized (deleted) account — it can never sign in or be saved again.
- isDeletionPending() : bool
- Deletion requested and still waiting for the grace period to pass.
- isPersisted() : bool
- removeUserRole() : $this
- setAboutMe() : $this
- setActivated() : $this
- setActivationExpires() : TRole>
- setActivationKey() : $this
- setAffiliateDisabled() : TRole>
- setAssetPath() : $this
- setBanned() : $this
- setCity() : $this
- setCompanyName() : $this
- setCountry() : $this
- setCountryCode() : TRole>
- setCredits() : $this
- setDeletedAt() : TRole>
- setDeletionClaimedAt() : TRole>
- setDeletionNonce() : TRole>
- setDeletionRequestedAt() : TRole>
- setDeletionTokenExpires() : TRole>
- setDeletionTokenHash() : TRole>
- setDiscount() : $this
- setDiscountLevelId() : $this
- setEmail() : $this
- setExternalId() : $this
- setFirstname() : $this
- setId() : $this
- setIp() : $this
- setIsCompany() : $this
- setLanguageId() : $this
- setLastname() : $this
- setMemberUntil() : $this
- setParentUserId() : $this
- setPassword() : $this
- setPasswordResetExpires() : TRole>
- setPasswordResetHash() : TRole>
- setPaymentRegionId() : $this
- setPhone() : $this
- setPoints() : $this
- setRatingThreadId() : $this
- setReferralCode() : TRole>
- setReferrerCode() : TRole>
- setReferrerUserId() : TRole>
- setRegId() : $this
- setRegionId() : $this
- setRegistrationDatetime() : $this
- setSalt() : $this
- setState() : $this
- setStreet() : $this
- setType() : $this
- setUrl() : $this
- setUsername() : $this
- setUserRoles() : $this
- setUserTypeId() : $this
- setVatId() : $this
- setZip() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$aboutMe
protected
string|null
$aboutMe
= null
Attributes
- #[Column]
- $type: "text"
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$activated
protected
bool
$activated
= false
Attributes
- #[Column]
- $type: "boolean"
- $options: ["default" => false]
$activationExpires
protected
DateTime|null
$activationExpires
= null
Attributes
- #[Column]
- $name: 'activation_expires'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$activationKey
protected
string
$activationKey
= ''
Attributes
- #[Column]
- $name: "activation_key"
- $type: "string"
- $length: 64
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$affiliateDisabled
protected
bool
$affiliateDisabled
= false
Attributes
- #[Column]
- $name: 'affiliate_disabled'
- $type: 'boolean'
- $options: ['default' => 0]
- #[FieldAccess]
- $read: Audience::Owner
- $insert: Audience::Privileged
- $update: Audience::Privileged
$assetPath
protected
string|null
$assetPath
= null
Attributes
- #[Column]
- $name: "asset_path"
- $type: "string"
- $length: 255
- $nullable: true
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$banned
protected
bool
$banned
= false
Attributes
- #[Column]
- $type: "boolean"
- $options: ["default" => false]
$city
protected
string|null
$city
= null
Attributes
- #[Column]
- $type: "string"
- $length: 80
- $nullable: true
$companyName
protected
string|null
$companyName
= null
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$country
protected
string|null
$country
= null
Attributes
- #[Column]
- $type: "string"
- $length: 80
- $nullable: true
$countryCode
protected
string|null
$countryCode
= null
Attributes
- #[Column]
- $name: "country_code"
- $type: "string"
- $length: 2
- $nullable: true
- $options: ["fixed" => true]
$credits
protected
int
$credits
= 0
Attributes
- #[Column]
- $type: "integer"
- $options: ["default" => 0]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
- #[PersonalData]
- PersonalDataKind::Hidden
$deletedAt
protected
DateTime|null
$deletedAt
= null
Attributes
- #[Column]
- $name: 'deleted_at'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::None
- $update: Audience::None
$deletionClaimedAt
protected
DateTime|null
$deletionClaimedAt
= null
Attributes
- #[Column]
- $name: 'deletion_claimed_at'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$deletionNonce
protected
string|null
$deletionNonce
= null
Attributes
- #[Column]
- $name: 'deletion_nonce'
- $type: 'string'
- $length: 32
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$deletionRequestedAt
protected
DateTime|null
$deletionRequestedAt
= null
Attributes
- #[Column]
- $name: 'deletion_requested_at'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::None
- $update: Audience::None
$deletionTokenExpires
protected
DateTime|null
$deletionTokenExpires
= null
Attributes
- #[Column]
- $name: 'deletion_token_expires'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$deletionTokenHash
protected
string|null
$deletionTokenHash
= null
Attributes
- #[Column]
- $name: 'deletion_token_hash'
- $type: 'string'
- $length: 64
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$discount
protected
int
$discount
= 0
Attributes
- #[Column]
- $type: "integer"
- $options: ["default" => 0]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
- #[PersonalData]
- PersonalDataKind::Hidden
$discountLevelId
protected
int|null
$discountLevelId
= null
Attributes
- #[Column]
- $type: "integer"
- $nullable: true
- $name: "cms_system_user_discount_levels_discount_level_id"
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
- #[PersonalData]
- PersonalDataKind::Hidden
protected
string|null
$email
= null
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $nullable: true
- $unique: true
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::All
- $update: Audience::Privileged
- #[PersonalData]
- PersonalDataKind::Email
$externalId
protected
string|null
$externalId
= null
Attributes
- #[Column]
- $type: "string"
- $length: 45
- $nullable: true
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$firstname
protected
string
$firstname
= ''
Attributes
- #[Column]
- $type: "string"
- $length: 80
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $type: "integer"
- $name: "user_id"
- #[GeneratedValue]
- #[Id]
$ip
protected
string|null
$ip
= null
Attributes
- #[Column]
- $type: "string"
- $length: 45
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$isCompany
protected
bool
$isCompany
= true
Attributes
- #[Column]
- $type: "boolean"
- $options: ["default" => true]
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $type: "integer"
- $nullable: true
- $name: "cms_system_languages_language_id"
$lastname
protected
string
$lastname
= ''
Attributes
- #[Column]
- $type: "string"
- $length: 100
$memberUntil
protected
DateTime|null
$memberUntil
= null
Attributes
- #[Column]
- $type: "datetime"
- $name: "member_until"
- $nullable: true
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$parentUserId
protected
int|null
$parentUserId
= null
Attributes
- #[Column]
- $type: "integer"
- $nullable: true
- $name: "cms_system_users_user_id"
$password
protected
string
$password
= ''
Attributes
- #[Column]
- $type: "string"
- $length: 40
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$passwordResetExpires
protected
DateTime|null
$passwordResetExpires
= null
Attributes
- #[Column]
- $name: 'password_reset_expires'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$passwordResetHash
protected
string|null
$passwordResetHash
= null
Attributes
- #[Column]
- $name: 'password_reset_hash'
- $type: 'string'
- $length: 64
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$paymentRegionId
protected
int|null
$paymentRegionId
= null
Attributes
- #[Column]
- $type: "integer"
- $nullable: true
- $name: "cms_system_payment_regions_payment_region_id"
$phone
protected
string|null
$phone
= null
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$points
protected
int
$points
= 0
Attributes
- #[Column]
- $type: "integer"
- $options: ["default" => 0]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
- #[PersonalData]
- PersonalDataKind::Hidden
$ratingThreadId
protected
int|null
$ratingThreadId
= null
Attributes
- #[Column]
- $name: 'cms_mod_base_rating_threads_rating_thread_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$referralCode
protected
string|null
$referralCode
= null
Attributes
- #[Column]
- $name: 'referral_code'
- $type: 'string'
- $length: 16
- $nullable: true
- $unique: true
- #[FieldAccess]
- $read: Audience::Owner
- $insert: Audience::None
- $update: Audience::None
$referrerCode
protected
string|null
$referrerCode
= null
Attributes
- #[Column]
- $name: 'referrer_code'
- $type: 'string'
- $length: 16
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::None
- $update: Audience::None
$referrerUserId
protected
int|null
$referrerUserId
= null
Attributes
- #[Column]
- $name: 'referrer_user_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::None
- $update: Audience::None
$regId
protected
string|null
$regId
= null
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$regionId
protected
int|null
$regionId
= null
Attributes
- #[Column]
- $type: "integer"
- $nullable: true
- $name: "cms_system_regions_region_id"
$registrationDatetime
protected
DateTime|null
$registrationDatetime
= null
Attributes
- #[Column]
- $type: "datetime"
$salt
protected
string
$salt
= ''
Attributes
- #[Column]
- $type: "string"
- $length: 25
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$state
protected
string|null
$state
= null
Attributes
- #[Column]
- $type: "string"
- $length: 80
- $nullable: true
$street
protected
string|null
$street
= null
Attributes
- #[Column]
- $type: "string"
- $length: 80
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$type
protected
string
$type
= 'web'
Attributes
- #[Column]
- $type: "string"
- $length: 45
- $options: ["default" => "web"]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$url
protected
string|null
$url
= null
Attributes
- #[Column]
- $type: "text"
- $nullable: true
$username
protected
string
$username
= ''
Attributes
- #[Column]
- $type: "string"
- $length: 45
- $unique: true
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::All
- $update: Audience::Privileged
$userRoles
protected
Collection
$userRoles
Attributes
- #[FieldAccess]
- $read: \App\Core\Attributes\Hydration\Audience::All
- $insert: \App\Core\Attributes\Hydration\Audience::Privileged
- $update: \App\Core\Attributes\Hydration\Audience::Privileged
- #[InverseJoinColumn]
- $name: "cms_system_user_roles_user_role_id"
- $referencedColumnName: "user_role_id"
- #[JoinColumn]
- $name: "cms_system_users_user_id"
- $referencedColumnName: "user_id"
- #[JoinTable]
- $name: "cms_system_user_role_relations"
- #[ManyToMany]
- $targetEntity: \App\UI\Api\System\Models\Entities\UserRole::class
- $inversedBy: "users"
$userTypeId
protected
int|null
$userTypeId
= null
Attributes
- #[Column]
- $type: "integer"
- $nullable: true
- $name: "cms_system_user_types_user_type_id"
$vatId
protected
string|null
$vatId
= null
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$zip
protected
string|null
$zip
= null
Attributes
- #[Column]
- $type: "string"
- $length: 15
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$assetFile
Transient cache of the derived `FtpAsset` (not a database column).
private
FtpAsset|null
$assetFile
= null
Attributes
- #[Transient]
Methods
__construct()
public
__construct([int|null $id = null ][, string $username = '' ][, string|null $email = null ][, string $password = '' ][, string $salt = '' ][, string $firstname = '' ][, string $lastname = '' ][, string|null $phone = null ][, string|null $street = null ][, string|null $zip = null ][, string|null $city = null ][, string|null $state = null ][, string|null $country = null ][, string|null $countryCode = null ][, bool $isCompany = true ][, string|null $regId = null ][, string|null $vatId = null ][, string|null $companyName = null ][, int|null $languageId = null ][, string $activationKey = '' ][, bool $activated = false ][, bool $banned = false ][, DateTime|null $registrationDatetime = null ][, int $points = 0 ][, int $credits = 0 ][, int|null $discountLevelId = null ][, int $discount = 0 ][, string|null $assetPath = null ][, int|null $regionId = null ][, int|null $paymentRegionId = null ][, int|null $userTypeId = null ][, int|null $parentUserId = null ][, string $type = 'web' ][, string|null $externalId = null ][, string|null $url = null ][, string|null $aboutMe = null ][, string|null $ip = null ][, DateTime|null $memberUntil = null ][, int|null $ratingThreadId = null ][, string|null $passwordResetHash = null ][, DateTime|null $passwordResetExpires = null ][, DateTime|null $activationExpires = null ][, DateTime|null $deletionRequestedAt = null ][, string|null $deletionTokenHash = null ][, DateTime|null $deletionTokenExpires = null ][, DateTime|null $deletedAt = null ][, string|null $deletionNonce = null ][, DateTime|null $deletionClaimedAt = null ][, string|null $referralCode = null ][, int|null $referrerUserId = null ][, string|null $referrerCode = null ][, bool $affiliateDisabled = false ][, Collection $userRoles = new ArrayCollection() ]) : mixed
Parameters
- $id : int|null = null
- $username : string = ''
- $email : string|null = null
- $password : string = ''
- $salt : string = ''
- $firstname : string = ''
- $lastname : string = ''
- $phone : string|null = null
- $street : string|null = null
- $zip : string|null = null
- $city : string|null = null
- $state : string|null = null
- $country : string|null = null
- $countryCode : string|null = null
- $isCompany : bool = true
- $regId : string|null = null
- $vatId : string|null = null
- $companyName : string|null = null
- $languageId : int|null = null
- $activationKey : string = ''
- $activated : bool = false
- $banned : bool = false
- $registrationDatetime : DateTime|null = null
- $points : int = 0
- $credits : int = 0
- $discountLevelId : int|null = null
- $discount : int = 0
- $assetPath : string|null = null
- $regionId : int|null = null
- $paymentRegionId : int|null = null
- $userTypeId : int|null = null
- $parentUserId : int|null = null
- $type : string = 'web'
- $externalId : string|null = null
- $url : string|null = null
- $aboutMe : string|null = null
- $ip : string|null = null
- $memberUntil : DateTime|null = null
- $ratingThreadId : int|null = null
- $passwordResetHash : string|null = null
- $passwordResetExpires : DateTime|null = null
- $activationExpires : DateTime|null = null
- $deletionRequestedAt : DateTime|null = null
- $deletionTokenHash : string|null = null
- $deletionTokenExpires : DateTime|null = null
- $deletedAt : DateTime|null = null
- $deletionNonce : string|null = null
- $deletionClaimedAt : DateTime|null = null
- $referralCode : string|null = null
- $referrerUserId : int|null = null
- $referrerCode : string|null = null
- $affiliateDisabled : bool = false
- $userRoles : Collection = new ArrayCollection()
addUserRole()
public
addUserRole(TRole $userRole) : $this
Parameters
- $userRole : TRole
Return values
$thiscallInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAboutMe()
public
getAboutMe() : string|null
Return values
string|nullgetActivated()
public
getActivated() : bool
Return values
boolgetActivationExpires()
public
getActivationExpires() : DateTime|null
Return values
DateTime|nullgetActivationKey()
public
getActivationKey() : string
Return values
stringgetAffiliateDisabled()
public
getAffiliateDisabled() : bool
Return values
boolgetAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getAssetFile()
Returns the `FtpAsset` derived from the path (lazy, works after Doctrine hydration too).
public
getAssetFile() : FtpAsset|null
Return values
FtpAsset|nullgetAssetPath()
public
getAssetPath() : string|null
Return values
string|nullgetBanned()
public
getBanned() : bool
Return values
boolgetCity()
public
getCity() : string|null
Return values
string|nullgetCompanyName()
public
getCompanyName() : string|null
Return values
string|nullgetCountry()
public
getCountry() : string|null
Return values
string|nullgetCountryCode()
public
getCountryCode() : string|null
Return values
string|nullgetCredits()
public
getCredits() : int
Return values
intgetDeletedAt()
public
getDeletedAt() : DateTime|null
Return values
DateTime|nullgetDeletionClaimedAt()
public
getDeletionClaimedAt() : DateTime|null
Return values
DateTime|nullgetDeletionNonce()
public
getDeletionNonce() : string|null
Return values
string|nullgetDeletionRequestedAt()
public
getDeletionRequestedAt() : DateTime|null
Return values
DateTime|nullgetDeletionTokenExpires()
public
getDeletionTokenExpires() : DateTime|null
Return values
DateTime|nullgetDeletionTokenHash()
public
getDeletionTokenHash() : string|null
Return values
string|nullgetDiscount()
public
getDiscount() : int
Return values
intgetDiscountLevelId()
public
getDiscountLevelId() : int|null
Return values
int|nullgetEmail()
public
getEmail() : string|null
Return values
string|nullgetExternalId()
public
getExternalId() : string|null
Return values
string|nullgetFirstname()
public
getFirstname() : string
Return values
stringgetId()
public
getId() : int|null
Return values
int|nullgetIp()
public
getIp() : string|null
Return values
string|nullgetLanguageId()
public
getLanguageId() : int|null
Return values
int|nullgetLastname()
public
getLastname() : string
Return values
stringgetMemberUntil()
public
getMemberUntil() : DateTime|null
Return values
DateTime|nullgetParentUserId()
public
getParentUserId() : int|null
Return values
int|nullgetPassword()
public
getPassword() : string
Return values
stringgetPasswordResetExpires()
public
getPasswordResetExpires() : DateTime|null
Return values
DateTime|nullgetPasswordResetHash()
public
getPasswordResetHash() : string|null
Return values
string|nullgetPaymentRegionId()
public
getPaymentRegionId() : int|null
Return values
int|nullgetPhone()
public
getPhone() : string|null
Return values
string|nullgetPoints()
public
getPoints() : int
Return values
intgetRatingThreadId()
public
getRatingThreadId() : int|null
Return values
int|nullgetReferralCode()
public
getReferralCode() : string|null
Return values
string|nullgetReferrerCode()
public
getReferrerCode() : string|null
Return values
string|nullgetReferrerUserId()
public
getReferrerUserId() : int|null
Return values
int|nullgetRegId()
public
getRegId() : string|null
Return values
string|nullgetRegionId()
public
getRegionId() : int|null
Return values
int|nullgetRegistrationDatetime()
public
getRegistrationDatetime() : DateTime|null
Return values
DateTime|nullgetSalt()
public
getSalt() : string
Return values
stringgetState()
public
getState() : string|null
Return values
string|nullgetStreet()
public
getStreet() : string|null
Return values
string|nullgetType()
public
getType() : string
Return values
stringgetUrl()
public
getUrl() : string|null
Return values
string|nullgetUsername()
public
getUsername() : string
Return values
stringgetUserRoles()
Roles of the user: a single collection `$userRoles` (mapped by the ORM in the Api layer, `#[Transient]` protects it from being overwritten on an admin save). Keep it single: a second unmapped collection made the getter return empty roles (JWT `role` claim and bridge payload without roles), hence `UserRelationManager` syncs the relations set-based over DBAL.
public
getUserRoles() : Collection<int, TRole>
Return values
Collection<int, TRole>getUserTypeId()
public
getUserTypeId() : int|null
Return values
int|nullgetVatId()
public
getVatId() : string|null
Return values
string|nullgetZip()
public
getZip() : string|null
Return values
string|nullisActivated()
public
isActivated() : bool
Return values
boolisAffiliateDisabled()
public
isAffiliateDisabled() : bool
Return values
boolisBanned()
public
isBanned() : bool
Return values
boolisCompany()
public
isCompany() : bool
Return values
boolisDeleted()
Anonymized (deleted) account — it can never sign in or be saved again.
public
isDeleted() : bool
Return values
boolisDeletionPending()
Deletion requested and still waiting for the grace period to pass.
public
isDeletionPending() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolremoveUserRole()
public
removeUserRole(TRole $userRole) : $this
Parameters
- $userRole : TRole
Return values
$thissetAboutMe()
public
setAboutMe(string|null $aboutMe) : $this
Parameters
- $aboutMe : string|null
Return values
$thissetActivated()
public
setActivated(bool $activated) : $this
Parameters
- $activated : bool
Return values
$thissetActivationExpires()
public
setActivationExpires(DateTime|null $activationExpires) : TRole>
Parameters
- $activationExpires : DateTime|null
Return values
TRole>setActivationKey()
public
setActivationKey(string $activationKey) : $this
Parameters
- $activationKey : string
Return values
$thissetAffiliateDisabled()
public
setAffiliateDisabled(bool $affiliateDisabled) : TRole>
Parameters
- $affiliateDisabled : bool
Return values
TRole>setAssetPath()
public
setAssetPath(string|null $assetPath) : $this
Parameters
- $assetPath : string|null
Return values
$thissetBanned()
public
setBanned(bool $banned) : $this
Parameters
- $banned : bool
Return values
$thissetCity()
public
setCity(string|null $city) : $this
Parameters
- $city : string|null
Return values
$thissetCompanyName()
public
setCompanyName(string|null $companyName) : $this
Parameters
- $companyName : string|null
Return values
$thissetCountry()
public
setCountry(string|null $country) : $this
Parameters
- $country : string|null
Return values
$thissetCountryCode()
public
setCountryCode(string|null $countryCode) : TRole>
Parameters
- $countryCode : string|null
Return values
TRole>setCredits()
public
setCredits(int $credits) : $this
Parameters
- $credits : int
Return values
$thissetDeletedAt()
public
setDeletedAt(DateTime|null $deletedAt) : TRole>
Parameters
- $deletedAt : DateTime|null
Return values
TRole>setDeletionClaimedAt()
public
setDeletionClaimedAt(DateTime|null $deletionClaimedAt) : TRole>
Parameters
- $deletionClaimedAt : DateTime|null
Return values
TRole>setDeletionNonce()
public
setDeletionNonce(string|null $deletionNonce) : TRole>
Parameters
- $deletionNonce : string|null
Return values
TRole>setDeletionRequestedAt()
public
setDeletionRequestedAt(DateTime|null $deletionRequestedAt) : TRole>
Parameters
- $deletionRequestedAt : DateTime|null
Return values
TRole>setDeletionTokenExpires()
public
setDeletionTokenExpires(DateTime|null $deletionTokenExpires) : TRole>
Parameters
- $deletionTokenExpires : DateTime|null
Return values
TRole>setDeletionTokenHash()
public
setDeletionTokenHash(string|null $deletionTokenHash) : TRole>
Parameters
- $deletionTokenHash : string|null
Return values
TRole>setDiscount()
public
setDiscount(int $discount) : $this
Parameters
- $discount : int
Return values
$thissetDiscountLevelId()
public
setDiscountLevelId(int|null $discountLevelId) : $this
Parameters
- $discountLevelId : int|null
Return values
$thissetEmail()
public
setEmail(string|null $email) : $this
Parameters
- $email : string|null
Return values
$thissetExternalId()
public
setExternalId(string|null $externalId) : $this
Parameters
- $externalId : string|null
Return values
$thissetFirstname()
public
setFirstname(string $firstname) : $this
Parameters
- $firstname : string
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetIp()
public
setIp(string|null $ip) : $this
Parameters
- $ip : string|null
Return values
$thissetIsCompany()
public
setIsCompany(bool $isCompany) : $this
Parameters
- $isCompany : bool
Return values
$thissetLanguageId()
public
setLanguageId(int|null $languageId) : $this
Parameters
- $languageId : int|null
Return values
$thissetLastname()
public
setLastname(string $lastname) : $this
Parameters
- $lastname : string
Return values
$thissetMemberUntil()
public
setMemberUntil(DateTime|null $memberUntil) : $this
Parameters
- $memberUntil : DateTime|null
Return values
$thissetParentUserId()
public
setParentUserId(int|null $parentUserId) : $this
Parameters
- $parentUserId : int|null
Return values
$thissetPassword()
public
setPassword(string $password) : $this
Parameters
- $password : string
Return values
$thissetPasswordResetExpires()
public
setPasswordResetExpires(DateTime|null $passwordResetExpires) : TRole>
Parameters
- $passwordResetExpires : DateTime|null
Return values
TRole>setPasswordResetHash()
public
setPasswordResetHash(string|null $passwordResetHash) : TRole>
Parameters
- $passwordResetHash : string|null
Return values
TRole>setPaymentRegionId()
public
setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
- $paymentRegionId : int|null
Return values
$thissetPhone()
public
setPhone(string|null $phone) : $this
Parameters
- $phone : string|null
Return values
$thissetPoints()
public
setPoints(int $points) : $this
Parameters
- $points : int
Return values
$thissetRatingThreadId()
public
setRatingThreadId(int|null $ratingThreadId) : $this
Parameters
- $ratingThreadId : int|null
Return values
$thissetReferralCode()
public
setReferralCode(string|null $referralCode) : TRole>
Parameters
- $referralCode : string|null
Return values
TRole>setReferrerCode()
public
setReferrerCode(string|null $referrerCode) : TRole>
Parameters
- $referrerCode : string|null
Return values
TRole>setReferrerUserId()
public
setReferrerUserId(int|null $referrerUserId) : TRole>
Parameters
- $referrerUserId : int|null
Return values
TRole>setRegId()
public
setRegId(string|null $regId) : $this
Parameters
- $regId : string|null
Return values
$thissetRegionId()
public
setRegionId(int|null $regionId) : $this
Parameters
- $regionId : int|null
Return values
$thissetRegistrationDatetime()
public
setRegistrationDatetime(DateTime|null $registrationDatetime) : $this
Parameters
- $registrationDatetime : DateTime|null
Return values
$thissetSalt()
public
setSalt(string $salt) : $this
Parameters
- $salt : string
Return values
$thissetState()
public
setState(string|null $state) : $this
Parameters
- $state : string|null
Return values
$thissetStreet()
public
setStreet(string|null $street) : $this
Parameters
- $street : string|null
Return values
$thissetType()
public
setType(string $type) : $this
Parameters
- $type : string
Return values
$thissetUrl()
public
setUrl(string|null $url) : $this
Parameters
- $url : string|null
Return values
$thissetUsername()
public
setUsername(string $username) : $this
Parameters
- $username : string
Return values
$thissetUserRoles()
public
setUserRoles(Collection<int, TRole>|array<int, TRole> $userRoles) : $this
Parameters
- $userRoles : Collection<int, TRole>|array<int, TRole>
Return values
$thissetUserTypeId()
public
setUserTypeId(int|null $userTypeId) : $this
Parameters
- $userTypeId : int|null
Return values
$thissetVatId()
public
setVatId(string|null $vatId) : $this
Parameters
- $vatId : string|null
Return values
$thissetZip()
public
setZip(string|null $zip) : $this
Parameters
- $zip : string|null
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>