src/Sasedev/Commons/SharedBundle/Model/BaseUser.php
public function serialize()
	{
		return serialize(array($this->password, $this->salt, $this->username, $this->email, $this->lockout, $this->id));
	}
public function serialize()
	{
		return serialize(array($this->password, $this->salt, $this->username, $this->email, $this->lockout, $this->id));
	}
Serializes the BaseUser.
The serialized data have to contain the fields used by the equals method
and the username.
{@inheritDoc} @see Serializable::serialize()

@return string