src/Sasedev/Commons/SharedBundle/Model/BaseUser.php
public function unserialize($serialized)
	{
		$data = unserialize($serialized);
		// add a few extra elements in the array to ensure that we have enough
		// keys when
		// unserializing
		// older data which does not include all properties.
		$data = array_merge($data, array_fill(0, 2, null));
		
		list ($this->password, $this->salt, $this->username, $this->email, $this->lockout, $this->id) = $data;
	}
public function unserialize($serialized)
	{
		$data = unserialize($serialized);
		// add a few extra elements in the array to ensure that we have enough
		// keys when
		// unserializing
		// older data which does not include all properties.
		$data = array_merge($data, array_fill(0, 2, null));
		
		list ($this->password, $this->salt, $this->username, $this->email, $this->lockout, $this->id) = $data;
	}
Unserializes the BaseUser.
{@inheritDoc} @see Serializable::unserialize()

@param string $serialized