Re: DB_DataObject: how to implement a calculated data inside a object FROM another
| From: | Justin Patrin | Date: | Mon, 07 Jun 2004 19:16:09 +0000 |
| Subject: | Re: DB_DataObject: how to implement a calculated data inside a object FROM another | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12979@lists.php.net to get a copy of this message | ||
J llarens wrote:
hi Justin Patrin I suspect I'm missing something, because when I ask for variable $status it returns nothing. I var_dump'ed and get this: object(padron)(13) { ["_DB_DataObject_version"]=> string(9) "@version@" ["__table"]=> string(6) "padron" ["N"]=> int(1) ["_database_dsn"]=> string(0) "" ["_database_dsn_md5"]=> string(32) "6d83d2454e9c574828d6d5b74855089b" ["_database"]=> string(4) "ccol" ["_DB_resultid"]=> int(1) ["_link_loaded"]=> bool(false) ["_join"]=> string(0) "" ["_lastError"]=> bool(false) ["id"]=> string(6) "562708" ["nombre"]=> string(23) "LOVATO JUSTA GALARZA DE" ["domicilio"]=> string(0) "" } and with debuglevel (SO large to put here) also not mention $status object var I tested with a: var $status inside and outside AUTOCODE with the same result Oh and in the .ini schema file also. Finaly, I put a getStatus function that return the result of the query, with same results. So, for some reason, the object refuses (silently) to recognize or use the added var or function. What im doing wrong? ------------ Contanos cómo usás el correo electrónico, qué pensás del spam y de los virus. Encuesta de Correo Yahoo! Participá en http://ar.surveys.yahoo.com/ar_mailpr2Did you add that fetch() method to your dataobject class? Please send us your code for the dataobject. -- paperCrane <Justin Patrin>