[symfony-users] Help with should be simple stuff...

2010-01-11 Thread Darren884
Hello, I am having trouble with the following:

I am trying to override my setPassword method for my employee model
but everytime I try to overwrite it I get nothing from it. I was
using:

public function setPassword($password)
{
parent::setPassword(sh1($password));
}

Also is it possible to define that a column in the doctrine YAML
should be unique? And also is it possible to define a MySQL function
on a column?

Thank You,
Darren
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Help with should be simple stuff...

2010-01-11 Thread Lee Bolding

On 12 Jan 2010, at 00:24, Darren884 wrote:

> I am trying to override my setPassword method for my employee model
> but everytime I try to overwrite it I get nothing from it. I was
> using:
> 
>   public function setPassword($password)
>   {
>   parent::setPassword(sh1($password));
>   }

try...

return parent::setPassword(sh1($password));
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.