Export to GitHub

db2php - issue #15

Underscore handled inconsistently, causing duplication errors


Posted on Mar 23, 2012 by Happy Lion

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

Status: New

Labels:
Type-Defect Priority-Medium