# ConsultationAnswerEntity

Implements \NPS\Entity\IEntity

Consultation answer entity

author | Lukas Korinek
ORM\Entity |
ORM\Table | (name="`consultation_answer`")
package | Default

### Methods

## 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

## consultation

    consultation : \NPS\Entity\ConsultationEntity

ORM\ManyToOne | (targetEntity="ConsultationEntity", inversedBy="answers")
ORM\JoinColumn | (name="consultation_id", referencedColumnName="id", nullable=true)
var |

### Type(s)

`\NPS\Entity\ConsultationEntity`

## Question details

    question : string

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

### Type(s)

`string`

## Query number, identifies the question across the consultation

    questionNumber : integer

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

### Type(s)

`integer`

## Answer ID

    answerId : string

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

### Type(s)

`string`

## id

    id :

inherited

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

### Type(s)

``