# ConsultationEntity

Implements \NPS\Entity\IEntity

Consultation entity

author | Lukas Korinek
ORM\Entity |
ORM\Table | (name="`consultation`")
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

## dateStarted

    dateStarted : \DateTime

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

### Type(s)

`\DateTime`

## dateEnded

    dateEnded : \DateTime

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

### Type(s)

`\DateTime`

## questionsAnswered

    questionsAnswered : integer

ORM\Column | (type="integer", name="questions_answered", nullable=false)
var |

### Type(s)

`integer`

## user

    user : \NPS\Entity\UserEntity

ORM\ManyToOne | (targetEntity="UserEntity")
ORM\JoinColumn | (name="user_id", referencedColumnName="id", nullable=true)
var |

### Type(s)

`\NPS\Entity\UserEntity`

## base

    base : \NPS\Entity\KnowledgeBaseEntity

ORM\ManyToOne | (targetEntity="KnowledgeBaseEntity")
ORM\JoinColumn | (name="base_id", referencedColumnName="id", nullable=false)
var |

### Type(s)

`\NPS\Entity\KnowledgeBaseEntity`

## flagged

    flagged : boolean

ORM\Column | (type="boolean", name="flagged", nullable=false)
var |

### Type(s)

`boolean`

## Internal state

    state : string

ORM\Column | (type="text", name="state", nullable=false)
var |

### Type(s)

`string`

## answers

    answers : \Doctrine\Common\Collections\ArrayCollection

ORM\OneToMany | (targetEntity="ConsultationAnswerEntity", mappedBy="consultation", 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)

``