0 votes

Hey,

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"})})

http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-uniqueconstraint

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

Hacking...
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...

Thk.

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"})})
 */
by Skipper developer (136k points)
selected by

Thk !!!