Freaky issue between using liveuser and DB_DataObject

From: Date: Fri, 24 Jun 2005 14:51:46 +0000
Subject: Freaky issue between using liveuser and DB_DataObject
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19754@lists.php.net to get a copy of this message
Hi there, I am discovering a freaky issue using LiveUser with DB_DataObjects in PHP4. I am running the same code in PHP5 and everything is fine. I am running code to add users in liveuser then a dataobject to add to a customer join table, however liveuser is connecting to a different database, and the the dataobject is trying to look for the table within that database when its clearly in another, any ideas ? /* $liveuser =& new Feeds_Admin_LiveUser(); $user_id = $liveuser->admin->addUser(array('handle'=>$this->customers-
username,'passwd'=>$this->customers->password,'is_active'=>null), 1); $granted = $liveuser->admin->perm-grantUserRight(array('perm_user_id'=>$user_id,'right_id'=>1,'right_level'=>1));
$result = $liveuser->admin->perm->addUserToGroup(array('perm_user_id' => $user_id, 'group_id' => 3)); */ if ($user_id) { $this->users = &DB_DataObject::factory('users_join'); $this->users->fromValue('userID',$user_id); $this->users->fromValue('customerID',$customerID); $this->users->insert(); }

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