fix last commit by storing db attribute as wakeup order wakes up acl before parent

This commit is contained in:
Ralf Becker 2017-04-06 13:45:47 +02:00
parent b80ff955eb
commit fcf50f1bc0

View File

@ -91,17 +91,7 @@ class Acl
*/ */
function __sleep() function __sleep()
{ {
return array('account_id'); return array('account_id','db');
}
/**
* Magic method called after object get unserialized
*
* We call __construct to get reference to db again and initialize data emtpy
*/
function __wakeup()
{
$this->__construct($this->account_id);
} }
/**************************************************************************\ /**************************************************************************\