Class User
User entity.
This needs enhancement, email should probably required. And we need a way to implements user profiles which can vary from installation to installation.
- FOM\UserBundle\Entity\User implements Symfony\Component\Security\Core\User\AdvancedUserInterface
Namespace: FOM\UserBundle\Entity
Author: Christian Wygoda
Author: apour
Author: Paul Schmidt
ORM\Entity
ORM\Table(name="fom_user"): TODO: Validation TODO: Basic user data TODO: User profiles
UniqueEntity("email")
UniqueEntity("username")
Located at FOM/UserBundle/Entity/User.php
Author: Christian Wygoda
Author: apour
Author: Paul Schmidt
ORM\Entity
ORM\Table(name="fom_user"): TODO: Validation TODO: Basic user data TODO: User profiles
UniqueEntity("email")
UniqueEntity("username")
Located at FOM/UserBundle/Entity/User.php
Methods summary
public
|
|
public
|
|
public
integer
|
|
public
mixed
|
|
public
string
|
|
public
mixed
|
|
public
string
|
|
public
mixed
|
|
public
string
|
|
public
|
|
public
null|string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
mixed
|
|
public
Doctrine\Common\Collections\Collection
|
|
public
array
|
|
public
|
#
eraseCredentials( )
Erase sensitive data like plain password. Don't fiddle with persisted data in here! |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
isAdmin( string $type = null )
Checks whether the user is an admin for the given type (or is superadmin if type is omitted) |
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
Magic methods summary
Properties summary
protected
mixed
|
$id
|
|
protected
mixed
|
$username
|
|
protected
mixed
|
$email
|
|
protected
mixed
|
$password
|
|
protected
mixed
|
$salt
|
|
protected
mixed
|
$registrationTime
|
|
protected
mixed
|
$registrationToken
|
|
protected
mixed
|
$resetTime
|
|
protected
mixed
|
$resetToken
|
|
protected
mixed
|
$groups
|
|
protected
mixed
|
$profile
The profile is not stored here, but a placeholder is needed |