Idea is to find the way how to use them in PHP. Running away from the problem is not the solution ;)
Regards, Saša Stamenković On Tue, Sep 22, 2009 at 11:59 AM, Benjamin Eberlei <kont...@beberlei.de>wrote: > > You shouldnt use Mysql ENUMS, they have some ugly properties. > > Any change in the list of allowed fields requires a complete rebuild > of the table, which can take ages. Using a Char and filtering in the > application is much better! > > greets, > Benjamin > > On Tue, 22 Sep 2009 02:27:02 -0700 (PDT), umpirsky <umpir...@gmail.com> > wrote: > > 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ć. >