blaiselnelson / db2php

Automatically exported from code.google.com/p/db2php
GNU General Public License v3.0
0 stars 0 forks source link

Underscore handled inconsistently, causing duplication errors #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Create a table with columns like this:
Pk
Name1
Name_1

I expected Name1 and Name_1 to be treated as separate columns, but while the 
constants distinguish between them, the setter methods are both named setName1. 
 (Not:  setName1 and setName_1)

This causes errors such as:
Cannot redeclare MyModel::setName1() ...

Obviously, changing the column names would fix this, but I need to use the 
database as it is, not as I wish it could be.

Windows 7, NetBeans IDE 7.0.1 (Build 201107282000)
DB2PHP Version: 1.3

Original issue reported on code.google.com by dan...@gmail.com on 23 Mar 2012 at 11:20