# UserEntity

Implements \NPS\Entity\IEntity

ORM\Entity |
ORM\Table | (name="`user`", indexes={@ORM\Index(name="email_index", columns={"email"})})
package | Default

### Methods

## __construct

    __construct()

## Constructs an object with a predefined set of properties Properties arrays contains keys of camel cased property names and their respective values

    create(array $properties) : self

inherited static

### Arguments

#### $properties

`array`

### Response

`self`

## Gets the ID

    getId() : integer

inherited

### Response

`integer`

### Properties

## username

    username : string

ORM\Column | (type="string", name="username", length=70, nullable=false)
var |

### Type(s)

`string`

## email

    email : string

ORM\Column | (type="string", name="email", length=150, nullable=false)
var |

### Type(s)

`string`

## password

    password : string

ORM\Column | (type="string", name="password", length=150, nullable=true)
var |

### Type(s)

`string`

## roles

    roles : string

ORM\Column | (type="string", name="roles", length=300, nullable=false)
var |

### Type(s)

`string`

## dateRegistered

    dateRegistered : \NPS\Entity\DateTime

ORM\Column | (type="datetime", name="date_registered", nullable=false)
var |

### Type(s)

`\NPS\Entity\DateTime`

## dateActivated

    dateActivated : \NPS\Entity\DateTime

ORM\Column | (type="datetime", name="date_activated", nullable=true)
var |

### Type(s)

`\NPS\Entity\DateTime`

## dateCredentialsUpdated

    dateCredentialsUpdated : \NPS\Entity\DateTime

ORM\Column | (type="datetime", name="date_credentials_updated", nullable=true)
var |

### Type(s)

`\NPS\Entity\DateTime`

## lastLogin

    lastLogin : \NPS\Entity\DateTime

ORM\Column | (type="datetime", name="date_login", nullable=true)
var |

### Type(s)

`\NPS\Entity\DateTime`

## salt

    salt : string

ORM\Column | (type="string", name="salt", length=30, nullable=true)
var |

### Type(s)

`string`

## grants

    grants : \Doctrine\Common\Collections\ArrayCollection

ORM\OneToMany | (targetEntity="AccessGrantEntity", mappedBy="user", cascade={"persist"})
var |

### Type(s)

`\Doctrine\Common\Collections\ArrayCollection`

## id

    id :

inherited

ORM\Id |
ORM\Column | (type="integer", name="id")
ORM\GeneratedValue | (strategy="AUTO")

### Type(s)

``