This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » General discussion » databse table named "list"?
databse table named "list"? [message #415] Wed, 16 November 2005 12:59 Go to next message
jbauer  is currently offline jbauer
Messages: 21
Registered: November 2005
Junior Member
Is it possible to have a db table named "list"? or am I doing something wrong.


[jbauer@localhost myproject]$ symfony generate-propelcrud todo list List

Parse error: parse error, unexpected T_LIST, expecting T_STRING in /www/jbauer/myproject/lib/model/List.php o n line 17


List.php:

<?php

require_once 'model/om/BaseList.php';


/**
* Skeleton subclass for representing a row from the 'todo_list' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package model
*/
class List extends BaseList {

} // List


(this doesn't validate in Zend IDE) says "Expecting:Indentifier" for the "class Lists... " line.




Re: databse table named "list"? [message #417 is a reply to message #415 ] Wed, 16 November 2005 15:55 Go to previous messageGo to next message
RoVeRT  is currently offline RoVeRT
Messages: 146
Registered: October 2005
Senior Member
This goes back to th elist of reserved words in php. Go here for more info.
Re: databse table named "list"? [message #422 is a reply to message #415 ] Wed, 16 November 2005 17:55 Go to previous messageGo to next message
jbauer  is currently offline jbauer
Messages: 21
Registered: November 2005
Junior Member
Got it. I guess a Feature Request then would be for the CLI to gracefully fail and check against a list of keywords, warning the user they cannot use Keywords.
Re: databse table named "list"? [message #423 is a reply to message #422 ] Wed, 16 November 2005 18:00 Go to previous messageGo to next message
Ian  is currently offline Ian
Messages: 383
Registered: October 2005
Location: Boulder, CO (USA)
Faithful Member
jbauer wrote on Wed, 16 November 2005 11:55

Got it. I guess a Feature Request then would be for the CLI to gracefully fail and check against a list of keywords, warning the user they cannot use Keywords.


I second that. I had this problem yesterday with 'Case'


Ian

Join us on IRC for LIVE support!
Report bugs here.
Re: databse table named "list"? [message #426 is a reply to message #415 ] Wed, 16 November 2005 20:10 Go to previous messageGo to next message
jbauer  is currently offline jbauer
Messages: 21
Registered: November 2005
Junior Member
Opened a trac ticket. marked as "enhancement"

[Updated on: Wed, 16 November 2005 20:10]

Re: databse table named "list"? [message #427 is a reply to message #415 ] Wed, 16 November 2005 21:53 Go to previous messageGo to next message
RoVeRT  is currently offline RoVeRT
Messages: 146
Registered: October 2005
Senior Member
This would be more of a Propel bug then a symfony bug and all they will tell you is not to use such ambiguous table names. Instead of List make it ProductList or whatever, it will look better in the end also.
Re: databse table named "list"? [message #435 is a reply to message #427 ] Thu, 17 November 2005 07:21 Go to previous message
fabien  is currently offline fabien
Messages: 484
Registered: October 2005
Faithful Member
Administrator
I agree with RoVeRT. I close the ticket about this.
Previous Topic:http.conf for the sample cart AJAX application
Next Topic:Existance of API Manual
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software