The idea is not to have @var replace @Column, but that you can omit the type information from the column annotation.
Before: @Column(type="string", name="foo") After: @Column(name="foo") @var string For this to be useful, we would need to come up with a standard for the @var annotation though as this is a bit insufficient atm. Johannes On Mon, May 30, 2011 at 12:50 PM, Tim Nagel <[email protected]> wrote: > I believe using an ORM annotation to specify how a property should be > mapped into a database column is separate from defining a php datatype > of a property. @var != @ORM\Column > > > t > > On Mon, May 30, 2011 at 19:13, Christian Heinrich > <[email protected]> wrote: > > What if I don't want an attribute to be mapped, but want the @var > > annotation to help my editor with code completion? > > > > Regards > > Christian > > > >> I'm sitting in Robert Lemke's talk on FLOW3 and he mentioned that in > >> their Doctrine integration they automatically read the datatypes from > >> the @var annotations, and then it's not necessary anymore to specify it > >> in @Column, or @OneToOne for example the related entity is automatically > >> set. > >> > >> Just sayin' > >> > >> Cheers > >> > >> -- > >> Jordi Boggiano > >> @seldaek - http://nelm.io/jordi > >> > > > > > > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > > > You received this message because you are subscribed to the Google > > Groups "symfony developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/symfony-devs?hl=en > > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
