Re: DataObjects keys definition through keys() method is not clear for me...

From: Date: Mon, 01 Dec 2003 16:35:01 +0000
Subject: Re: DataObjects keys definition through keys() method is not clear for me...
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-9247@lists.php.net to get a copy of this message
$d->keys(array('id'));
Opps.. Did I get the example wrong... :( From what I remember, It should be $d->keys('id'); or for multiple keys.. $d->keys('id','name','xxx','yyy'); ill never be found in the array $filter cause its
content is another array of fields... $k = id $filter = array(0=>array('id')) instead of $filter = array('id'); I couldn't understand how it became an array inside another array since I passed it as an simple array....
keys uses $keys=func_get_args(); to fetch the array of keys, so you end up with an array of arrays..
Any suggestions about what's happening? Or how to deal with that? That's it.... Netto


« previous php.pear.general (#9247) next »