I know.

This is auto-generated by Propel in a Base class since the a column is titled 
'13number_rate'.

I'm asking if there's any possible method to get around this in symfony without 
renaming the column in the database.

Does 'phpName' work on a the column level?

Thanks
Alex

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Nicolas Perriault
Sent: Friday, 29 August 2008 6:07 PM
To: [email protected]
Subject: [symfony-users] Re: DB Column starts with Integer.


On Fri, Aug 29, 2008 at 2:28 AM, Alex 'noetix' Joyce
<[EMAIL PROTECTED]> wrote:

> I'm trying to use symfony with an existing database. One table has column
> names that start with integers.
>
> Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING in
> /www/signups/lib/model/om/BasePlanVoicePeer.php on line 86
>
> const 13NUMBER_RATE = 'plans_voice.13NUMBER_RATE';

A PHP constant cannot start with a number: http://fr.php.net/constants

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 67



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to