Perfect. Thanks Kris & Fabian :D
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kris Wallsmith Sent: Saturday, 30 August 2008 9:35 AM To: symfony users Subject: [symfony-users] Re: DB Column starts with Integer. Hi Alex, Propel provides a "peerName" attribute for each column. You can use this to rename the peer constant. Kris On Aug 29, 2:56 pm, Fabian Lange <[EMAIL PROTECTED]> wrote: > Hi Alex, > > the easiest solution is to create a Read/Write View of that table and give > it a different name. > > Or perhaps your dbms can give a table also an alias using a different > mechanism. > > For usage in PHP Tables and columns have to be valid php names. This also > excludes table names like "class" "public" "static", but also some symphony > or propel naming conventions might collide. > > Some info might be derived from: > > http://trac.symfony-project.org/wiki/ReservedWords > > Regards > > .:Fabian > > Von: [email protected] [mailto:[EMAIL PROTECTED] > Im Auftrag von Alex 'noetix' Joyce > Gesendet: Freitag, 29. August 2008 02:28 > An: [email protected] > Betreff: [symfony-users] DB Column starts with Integer. > > Hi folks, > > 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 > > // the file. > > const 13NUMBER_RATE = 'plans_voice.13NUMBER_RATE'; > > I can't see any means to fix this without changing the name in the database. > That however, will be a task updating the rest of the system. > > Any ideas? > > Thanks > > Alex Joyce > > winmail.dat > 7KViewDownload --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
