What do you think about adding method to MyEnum class for getting array of all possible values (all constants)?
Regards,
Saša Stamenković
Regards,
Saša Stamenković
On Tue, Sep 22, 2009 at 11:29 AM, keith Pope <mute.pop3@googlemail.com> wrote:
http://www.whitewashing.de/blog/articles/120
2009/9/22 umpirsky <umpirsky@gmail.com>:
-->
> Hi.
>
> I wonder what is the best way to model MySQL enums? Class with constants, or
> array of constants, or maybe sth else? You need to render options in
> templates (<select>) or to use enum values allll over the code.
>
> So, what is the right way to go?
>
> Regards,
> Saša Stamenković.
> --
> View this message in context: http://www.nabble.com/Modeling-MySQL-enum-tp25530643p25530643.html
> Sent from the Zend DB mailing list archive at Nabble.com.
>
>
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------
没有评论:
发表评论