PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #3055

Don't work ->getLink(), ->getLinks() and more other in new php version 4.3.10

Details

Submitted2004-12-29 23:33 UTC
Frombuh at mixmag dot ru
StatusNo Feedback
PackageDB_DataObject
PHP Version4.3.10
OSAll
Roadmaps(Not assigned)

Comments

[2004-12-29 23:33 UTC] buh at mixmag dot ru

Description:
------------
All good work in other version of php older 4.3.10, but in this version very big bugs come.
1. Don't work correctly ->selectAs().
2. Don't work absolutly ->getLink() and ->getLinks(). Under windows XP just apache is down and under Linux apache sending nothing.

DB_DataObject 1.7.2

Reproduce code:
---------------
1. work with ->selectAs
$do1 =& DB_DataObject::factory('product_reward');
$do2 =& DB_DataObject::factory('product');
$do3 =& DB_DataObject::factory('photo');
$do1->setProduct_id($do->getId());
$do2->joinAdd(&$do3);
$do1->joinAdd(&$do2);
// next don't work
$do1->selectAs();
// next is makeshift
$do1->selectAdd();
$do1->selectAdd($do1->__table.'.*');
$do1->selectAs(array('id'), 'product_%s', 'product');
$do1->selectAs(array('title', 'filename'), 'photo_%s', $do3->__table);

Expected result:
----------------
1. In debug mode query is:
SELECT product_reward.* , product.id AS product_id , photo.title AS photo_title , photo.filename AS photo_filename FROM ...

Actual result:
--------------
1. In debug mode query is:
SELECT , product.id AS product_id , photo.title AS photo_title , photo.filename AS photo_filename FROM ...

[2004-12-30 00:01 UTC] buh at mixmag dot ru

3. And next step, don't work with DB_DataObject_FormBuilder ->getForm().