DB_DataObject Generator creates PHP syntax breaking code

From: Date: Wed, 10 Jan 2007 15:49:17 +0000
Subject: DB_DataObject Generator creates PHP syntax breaking code
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26311@lists.php.net to get a copy of this message
I'm using a MSSql (I have to) server witch has colum names like "E-Mail" oder "EG Number". The Generator creates my DataObject-files with contents like this: ... public $Telefax; // varchar(25) public $E-Mail; // varchar(60) public $Internet; // varchar(60) public $EG Number; // varchar(30) ... This breaks the PHP syntax of variable names. Because it uses "-" and " "! How can I prevent this or working arround, there are only a few "wrong" variables. Simon

« previous php.pear.general (#26311) next »