Hello, I have a table called 'list'. I cannot modify the name of this table.
I would like to generate a schema and entity classes for this table. When I run symfony doctrine:build-schema I get the obvious: Parse error: syntax error, unexpected T_LIST, expecting T_STRING in C:\Users\ale-xps\AppData\Local\Temp\tmp_doctrine_models\List.php on line 22 Looking at List.php line 22 class List extends Doctrine_Record I want to append a constant "_table" to all entity class names so looking at the Doctrine docs I found $manager->setAttribute(Doctrine::ATTR_TBLNAME_FORMAT, '%s_table'); I placed this in my ProjectConfiguration.class.php in the method public function configureDoctrine(Doctrine_Manager $manager) as such: public function configureDoctrine(Doctrine_Manager $manager) { //required becuase some control_sso tables are reserved mysql words "group" is //an example $manager->setAttribute(Doctrine::ATTR_QUOTE_IDENTIFIER, true); //required because some control_sso tables are reserved php words "list" is an //example $manager->setAttribute(Doctrine::ATTR_TBLNAME_FORMAT, '%s_table'); } The first ATTR_QUOTE_IDENTIFIER attribute worked... the second ATTR_TBLNAME_FORMAT is not... any ideas? thank you -- Signed, Alessandro Ferrucci -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en