[Feature request] Add basic validations to fields.

+1 vote
asked Mar 25, 2013 in Feature Request by catalos (170 points)
edited Mar 25, 2013 by ludek.vodicka

Posibilitar validaciones básicas a los campos en tiempo de diseño.

  • NotBlank
  • Blank
  • NotNull
  • Email
  • URL
  • Length
  • so on...
    Validations

Could be implemented from the property browser while the field remains selected.

2 Answers

0 votes
answered Mar 25, 2013 by ludek.vodicka Skipper developer (140,450 points)
selected Jul 30, 2014 by Martin Freki Stradej
 
Best answer

Hi Catalos, thank you for suggestion. Unfortunately if I see correctly, this is not ORM dependent property.

ORM Designer can generate only schema.yml / .xml / annotations files. But link you sent points to validation.yml which isn't maintained by ORM but Symfony.

Maybe we add support for another MVC setting files in the future.

commented Mar 25, 2013 by ludek.vodicka Skipper developer (140,450 points)

I checked it more detailed and it seems that XML and Annotations format support validators directly in model definition files. So I suppose that example .yml is also schema definition file.

In this case it might be easier to implement such behavior. Unfortunately right now ORM Designer can export only limited set of annotations, so @Assert annotation would require more changes.

I marked this post as feature request. Unfortunately I can't guarantee when we implement it.

0 votes
answered Apr 7, 2014 by iavansis.miguel (320 points)

+1
It would be possible to add the @Assert via script file?

commented Apr 7, 2014 by Martin Freki Stradej Skipper developer (74,840 points)

Hi,
at the moment ORM Designer supports only ORM dependent properties. Unfortunately, it is not possible to add @assert annotations to definition files in any way supported by ORM Designer.

commented Apr 7, 2014 by iavansis.miguel (320 points)

Ok, I understand. I can always add it manually.
Thank you very much.

...