[Answered] UniqueEntity

0 votes
asked Jun 3, 2016 in Solved by marton (120 points)
recategorized Jul 4, 2016 by ludek.vodicka

Does skipper support Symfony Validation annotations?

Like, when selecting UQ (Unique contraint) on a field in skipper, it should have added for instance:

I add a Entity called Project and whant Project->title to be Unique.

...
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

....
/**
* @ORM\Entity(repositoryClass="AppBundle\Repository\ProjectRepository")
* @ORM\Table(name="project")
* @UniqueEntity("title")
*/
class Project {
...

1 Answer

0 votes
answered Jun 3, 2016 by ludek.vodicka Skipper developer (140,450 points)

Currently it's not possible to edit/export anything else than @ORM annotations. It's because any other annotations aren't ORM dependent so it shouldn't be possible to edit everything through Skipper. Because of that we're currently aiming only to ORM features.

...