mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
Fix for a warning about mysql_free() revealing a problem with DBObjectSet
SVN:trunk[3257]
This commit is contained in:
@@ -112,7 +112,17 @@ class DBObjectSet
|
||||
$this->m_oSQLResult = null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when unserializing a DBObjectSet
|
||||
*/
|
||||
public function __wakeup()
|
||||
{
|
||||
$this->m_iNumTotalDBRows = null; // Total number of rows for the query without LIMIT. null if unknown yet
|
||||
$this->m_iNumLoadedDBRows = 0; // Total number of rows LOADED in $this->m_oSQLResult via a SQL query. 0 by default
|
||||
$this->m_bLoaded = false; // true when the filter has been used OR the set is built step by step (AddObject...)
|
||||
$this->m_iCurrRow = 0;
|
||||
$this->m_oSQLResult = null;
|
||||
}
|
||||
/**
|
||||
* Specify the subset of attributes to load (for each class of objects) before performing the SQL query for retrieving the rows from the DB
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user