Re: DB_NestedSet createRoot Node
| From: | Daniel Khan | Date: | Mon, 17 Nov 2003 10:21:53 +0000 |
| Subject: | Re: DB_NestedSet createRoot Node | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23702@lists.php.net to get a copy of this message | ||
Arnaud Limbourg wrote:
$this->_dropSequence($this->sequence_table); shouldn't it be $this->db->dropSequence($this->sequence_table);Hi Arnaud, no - as it's a member method of DB_NestedSet[MDB|DB] and implemented there. The MDB driver does:
function _dropSequence($sequence)
{
$this->db->loadManager();
return $this->db->dropSequence($sequence);
}
The DB driver does:
function _dropSequence($sequence)
{
return $this->db->dropSequence($this->sequence_table);
}
So it shoudln't be called on the $db instance directly.
greetings
--
Daniel Khan