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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<<inline: winmail.dat>>
