0 votes


Is possible to add doctrine uniqueConstraints support like table, schema, repository-class ?

Working exemple :

@ORM\Table(uniqueConstraints={@UniqueConstraint(name="line_user_idx", columns={"line", "user_id"})})


For now i use table field and remove the quote...

Skipper table field value

phone",uniqueConstraints={@UniqueConstraint(name="line_user_idx", columns={"line", "user_id"})})

Output :

 * @ORM\Table(name="phone",uniqueConstraints={@UniqueConstraint(name="line_user_idx", columns={"line", "user_id"})})")

And remove last quote after each export...


asked in Solved by (220 points)
recategorized by

1 Answer

0 votes
Best answer

Hi Guillaume,

did you try Unique Indexes in Skipper?

enter image description here

 * @ORM\Entity
 * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="line_user_idx", columns={"name"})})
answered by Skipper developer (135k points)
selected by

Thk !!!