src/Sasedev/Commons/SharedBundle/Model/BaseUser.php
public function setPassword($password)
	{
		$encoder = new Pbkdf2PasswordEncoder('sha512', true, 1000);
		$this->password = $encoder->encodePassword($password, $this->getSalt());
		
		return $this;
	}
public function setPassword($password)
	{
		$encoder = new Pbkdf2PasswordEncoder('sha512', true, 1000);
		$this->password = $encoder->encodePassword($password, $this->getSalt());
		
		return $this;
	}
Set password

@param string $password

@return BaseUser