I can't make it work, on phalcon 2.0.1.
a direct assigment should launch the setter, right?
class Users extends \Phalcon\Mvc\Model
{
protected $password;
public function getPassword() { return $this->password; }
public function setPassword($password) { $this->password = 'prepend'.$password; }
}
$user->password = 'string';
echo $user->password; // 'string', not prepended as in setter.
It does not enter on the setter. Something I'm doing wrong? Or the setter only works for save, update, create, etc? The thing is, I'm pretty sure that this was working before..