0 votes

Is it possible to export @var annotations on class properties?

Like this:

 * @ORM\Column(type="string", length=255, nullable=true)
 * @var string
private $firstname;

Would be much nicer to generate type-hinted getters and setters from this.

Of course using FQCN for related objects would also be very nice.

Also it would be very nice to have templating control over how annotations are generated to add Symfony validation constraints for example.

in Feature Request by (120 points)

This is currently not supported. We can discuss it here if we're able to support non-orm features like this

Regarding templates, this could be very hard. Parsing and generating annotations is the very complex task (because of processing only some annotations without touching others).

Problem with @var variable is that Skipper has to also update and delete such variables. But @var can be used also on non-ORM properties and there will be no way how to detect which @vars can Skipper delete.

Hey, I know this is old but I'd really like to see this even if it was just some kind of extra field we filled out manually similar to how we add orm attributes and stuff.

Thanks for your feedback. Unfortunately as mentioned above, it's not such easy task, because @var isn't @ORM property. But we will try to investigate it again if there is anything we can do.

Please log in or register to answer this question.