src/AbstractDbEntity.php
public function unserialize($serializedObject)
    {
        $objectVars = unserialize($serializedObject);

        foreach ($objectVars as $key => $value) {
            $this->{$key} = $value;
        }
    }
public function unserialize($serializedObject)
    {
        $objectVars = unserialize($serializedObject);

        foreach ($objectVars as $key => $value) {
            $this->{$key} = $value;
        }
    }
public function unserialize ( $ serializedObject ) { $ objectVars = unserialize ( $ serializedObject ) ; foreach ( $ objectVars as $ key => $ value ) { $ this -> { $ key } = $ value ; } }
Method to handle the unserialization of this object.

Implementation of Serializable interface. If descendant private properties
should be unserialized, they need to be visible to this parent (i.e. not private).

@param string $serializedObject
Method to handle the unserialization of this object .