Sisäänkirjautuminen| Uusi tunnus
FrontPage| Projects| Forums| Search|
^ DaoGen Forums: › Why? › PHP5? › Using ToString() with PHP › Next DaoGen version almost ready! › Create (insert) and Save (update) PHP examples › Support for numeric object types almost ready! › DaoGen 2.1.0 released! › Compliments and minor suggestion › variables within a class › Foreign key constraint in create() › Security issue!!! › auto-generated columns and create method › Oracle BLOB › DAO for cross-table queries › Please help me.. › Please use this forum for DaoGen related stuff › Call-time Pass-By-Reference › DaoGen 2.4.0 has been released! › How can I show relationships? › DaoGen & PHP 5 › PHP4 vs PHP5 and other considerations. » singleQuery example in php › Why are save and delete not synchronized? › Why are save and delete not synchronized? › DTD for generated XML › DaoGen 2.2.2 has been released! › DaoGen 2.0.2 is available. › For a thesis ?? › Extremely good idea ?? how can I ???? › Usability suggestions for DaoGen › Performance of DaoGen with Mapping tools › Performance with List › Some usage statistics › DaoGen 2.2.1 has been released! › Programming Examples are back! › DaoGen 2.0.1 is available. › Version 2.0.0 generates buggy PHP code! New version soon available! › Examples of DaoGen customizations › Code Examples
» Käyttäjätunnus:
» Salasana:
» Muista kirjautuminen:
Suosituimmat sivut: › DaoGen Forums › Using ToString() with PHP › PHP4 vs PHP5 and other considerations. › Programming Examples › Projects › Search › DaoGen FAQ › DaoGen Manual › How can I show relationships? › Programming Examples are back!
FrontPage » Forums » DaoGen Forums » singleQuery example in php

singleQuery example in php

Posted by anonymous 18.01.2006 16:17

I have generated some code with daoGen, but when i try to use singleQuery it returns nothing. These are the steps i took:

- created a php file, test.php
- used the customer constructor to create the customer instance, $tempCustomer.
- used the customerDAO constructor to create the customerDAO instance, $tempCustomerDAO.
- then i use $tempCustomerDAO->load($tempCustomer).
- so now $valueObject=$tempCustomer, then when i use the following php method: print_r(get_vars_object($valueObject)) inside the singleQuery function, it shows the data from the database.
- but when i use the same method in test.php:
print_r(get_vars_object($tempCustomer)) it has know data, only the primary key of the table.

So it seems i have two different instances of customer, is somebody familiar with this problem?