can't have a database table called 'class' [message #1943] |
Mon, 09 February 2009 10:46 |
ikatz
Messages: 40 Registered: December 2007 Location: Durham, NH
|
Member |
|
|
This problem seems pretty obvious in hindsight, but I created a table called "class", which causes Radicore to generate a class file with the name "class" -- a syntax error.
I would suggest adding some sort of check for table names that won't translate to PHP classes, when they are first imported into the dictionary. Or, rather than making a list of words that are reserved, it might be easier to just run "php -l" on each generated file.
I don't mind correcting my own naming errors (to fix my problem, I'm renaming "class" to "course"); my concern is that the Radicore application generates PHP scripts that don't parse.
|
|
|