PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #9609

Generator.php Bug

Details

Submitted2006-12-14 03:59 UTC
Fromrecca at seed dot net dot tw
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.3.11
Roadmaps(Not assigned)

Comments

[2006-12-14 03:59 UTC] recca at seed dot net dot tw

Description:
------------
line 1112 of Generator.php

$obj->_table = $this->table;
DabaObject default var is __table

current:
$obj->_table = $this->table;

fixed:
$obj->__table = $this->table;

Test script:
---------------
==============
DataObject.ini
==============
generator_no_ini = true
generator_strip_schema = true

==============
create.php
==============
$config = parse_ini_file('DataObject.ini',TRUE);
foreach($config as $class=>$values) {
$options = &PEAR::getStaticProperty($class,'options');
$options = $values;
}

$options = &PEAR::getStaticProperty('DB_DataObject','options');

set_time_limit(0);
DB_DataObject::debugLevel(0);
$generator = new DB_DataObject_Generator;
$generator->start();