Thanks Daniel

One solution that I saw once on the symfony website is to use int fields for
them and override get and set functions in the propel object to
accept/return strings.

regards,
--Mohammad


On Wed, Mar 5, 2008 at 12:07 PM, Richtermeister <[EMAIL PROTECTED]> wrote:

>
> Hi Mohammad,
>
> I believe enum is not a universal type,
> so within propel you'd have to use char or similar for the same
> purpose.
>
> Have a great day,
> Daniel
>
> On Mar 4, 5:34 pm, "Mohammad Ali Safari" <[EMAIL PROTECTED]>
> wrote:
> > Hi Georg and many thanks for your reply.
> > That was almost what I wanted. Propel has some issues in building the
> > mappings (such as enum types), but this works great for me.
> >
> > cheers,
> > --Mohammad
> >
> > On Mon, Mar 3, 2008 at 9:06 AM, Georg Sorst <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Mohammad,
> >
> > > do you want to use type-checking for your model depending on the
> column
> > > type or do you want to get some information about the corresponding
> > > table from your model?
> >
> > > For the first case, Propel should already do that. For the latter
> case,
> > > you can get all kinds of information about the columns (type, primary
> /
> > > foreign key etc.) from the table map. To get the table map for a
> certain
> > > model class use the peer method
> Base<YourModelClass>Peer::getTableMap()
> > > and then have a look at the TableMap class to see what can be done
> with
> > > it.
> >
> > > Best regards,
> > > Georg
> >
> > > Mohammad Ali Safari schrieb:
> > > > Hi
> > > > I am using propel-build-schema to create a schema from my existing
> > > > database and then create my model. However, it seems the model does
> not
> > > > give me much information about column in my tables such as their
> types.
> >
> > > > Is there any way to force propel to include such information
> (specially
> > > > the column types) in the generated model classes?
> >
> > > > cheers,
> > > > --mohammad
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to