DB_Object->find not in sync with documentation?
| From: | Ken Restivo | Date: | Mon, 15 Nov 2004 00:26:01 +0000 |
| Subject: | DB_Object->find not in sync with documentation? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15495@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The docs for DB_Object->find() offer an example:
$person = new DataObjects_Person;
$person->hair = 'red';
$person->has_glasses = 1;
$number_of_rows = $person->find();
I figure, great, I'll do that too.
$obj = DB_DataObject::factory ('income');
$obj->txn_id = 'foobar';
$numrows = $obj->find() ;
Ah, but DebugLevel(5) shows:
income: QUERY: SELECT * FROM income
print_r($obj) shows that txn_id is in fact set to 'foobar'.
WTF? Why isn't it adding the txn_id to the where clause? Docs imply that it should.
I'm using:
DB_DataObject 1.7.2 stable
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBl/eZe8HF+6xeOIcRAovsAKDu+Nb+g+kcwYm/xyHMcoiNCTtBnQCgllLP
NddpIV0uJ0oauvxv+IjBKb0=
=vcy8
-----END PGP SIGNATURE-----