On Mar 29, 3:48 pm, mscdex <msc...@gmail.com> wrote:
> On Mar 29, 6:35 am, aman batra <batra_aman2...@yahoo.com> wrote:
>
> > Hello,
> > I have in my Db table a column agent which takes the value as enum
> > ('G','Y','M') and where
> > G = google
> > Y = yahoo
> > M = msn
> > How should i map the strings google, yahoo, etc which will be the
> > output of my function to map as G,Y,etc so that my Db query recognise
> > it and saves it to the database.
>
> CakePHP doesn't support the Enum DB column type.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Sunday, March 29, 2009
Re: how to map enums with strings
how to map the enum with strings then??
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment