DBDO News
Published 2005-04-09 13:21:42
DBDO's slow migration from vapourware to bugware has been progressing this week. A month ago, I started useability testing on the PHP5 version of this site, and it helped find alot more issues than the unit tests that I had set up.
A few weeks ago though, I was working on another application that uses a threaded version of PHP embed, and DBDO, which was throwing up quite a few bugs around setting / fetching data using the overloaded internal setters and getters.
The original design of DBDO, was that when you fetch a value (eg.)
echo $do->name;
that the object would internally get the value from libgda at this point, rather than the way DB_DataObject currently does, by assigning all the PHP variables when you call $do->fetch().
The trouble was that this way of working began to get very confusing when mixed with all the potential ways that you may access the data.
This removed a large chunk of code, and in general simpified the whole query building process. Things like the update code could easily compare the fetched data against the current object properties and update only the changed data. The only thing that caught me out was that unless you add a zend_objects_store_add_ref() after changing the properties internally, the values get free'd too early and segfaults occur.
Anyway, the current plan is to get back to testing the code on the PHP5 version of this site next week, then actually make an alpha release...
A few weeks ago though, I was working on another application that uses a threaded version of PHP embed, and DBDO, which was throwing up quite a few bugs around setting / fetching data using the overloaded internal setters and getters.
The original design of DBDO, was that when you fetch a value (eg.)
echo $do->name;
that the object would internally get the value from libgda at this point, rather than the way DB_DataObject currently does, by assigning all the PHP variables when you call $do->fetch().
The trouble was that this way of working began to get very confusing when mixed with all the potential ways that you may access the data.
- Setting the column value (at this point you have to store a seperate hash for assigned values)
- print_r and it's like need you to actually set values for all the properties.
This removed a large chunk of code, and in general simpified the whole query building process. Things like the update code could easily compare the fetched data against the current object properties and update only the changed data. The only thing that caught me out was that unless you add a zend_objects_store_add_ref() after changing the properties internally, the values get free'd too early and segfaults occur.
Anyway, the current plan is to get back to testing the code on the PHP5 version of this site next week, then actually make an alpha release...
Mentioned By:
google.com : april (108 referals)
google.com : DBDO (12 referals)
www.phpn.org : DBDO News (10 referals)
google.com : december (10 referals)
planet-php.org : Planet PHP (8 referals)
www.artima.com : PHP Buzz Forum - DBDO News (4 referals)
google.com : php DBDO (3 referals)
www.midgard-project.org : Midgard Project - Open Source Content Management System (CMS) (2 referals)
www.artima.com : PHP Buzz (2 referals)
timvw.madoka.be : Tim Van Wassenhove :: Blogmarks (2 referals)
news.org.ru : news.org.ru - (2 referals)
google.com : dbdo php (2 referals)
google.com : november (2 referals)
www.stadtaus.com : STADTAUS.com Weblog (1 referals)
www.midgard-project.org : Midgard Project - Planet Midgard (1 referals)
jh-webservice.de : News :: Planet PHP (1 referals)
google.com : "zend_objects_store_add_ref" (1 referals)
google.com : db-do (1 referals)
google.com : fetch current news in php (1 referals)
google.com : google rss news (1 referals)
google.com : april (108 referals)
google.com : DBDO (12 referals)
www.phpn.org : DBDO News (10 referals)
google.com : december (10 referals)
planet-php.org : Planet PHP (8 referals)
www.artima.com : PHP Buzz Forum - DBDO News (4 referals)
google.com : php DBDO (3 referals)
www.midgard-project.org : Midgard Project - Open Source Content Management System (CMS) (2 referals)
www.artima.com : PHP Buzz (2 referals)
timvw.madoka.be : Tim Van Wassenhove :: Blogmarks (2 referals)
news.org.ru : news.org.ru - (2 referals)
google.com : dbdo php (2 referals)
google.com : november (2 referals)
www.stadtaus.com : STADTAUS.com Weblog (1 referals)
www.midgard-project.org : Midgard Project - Planet Midgard (1 referals)
jh-webservice.de : News :: Planet PHP (1 referals)
google.com : "zend_objects_store_add_ref" (1 referals)
google.com : db-do (1 referals)
google.com : fetch current news in php (1 referals)
google.com : google rss news (1 referals)
Follow us
-
- Some thoughts on the language server and its usefulness in the roobuilder
- Roo Builder for Gtk4 moving forward
- Clustered Web Applications - Mysql and File replication
- GitLive - Branching - Merging
- PDO_DataObject Released
- PDO_DataObject is under way
- Mass email Marketing and anti-spam - some of the how-to..
- Hydra - Recruitment done right
Blog Latest
-
Twitter - @Roojs