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.

asked Jul 7 in Solved by Guillaume (220 points)
recategorized Jul 25 by ludek.vodicka

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 Jul 25 by ludek.vodicka Skipper developer (125,470 points)
selected Jul 25 by Guillaume

Thk !!!