[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Jonathan Wage
I don't think that is intended. mapValue() doesn't mean you can set the value then. - Jon On Thu, Nov 20, 2008 at 9:50 AM, Sebastian <[EMAIL PROTECTED]>wrote: > > Maybe I should mention that the second line works perfectly well and > prints "0815". The third line then _crashes_. > > $player->map

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Sebastian
Maybe I should mention that the second line works perfectly well and prints "0815". The third line then _crashes_. $player->mapValue('password_confirmation', '0815'); print $player->password_confirmation; $player->password_confirmation = '1234'; --~--~-~--~~~---~--~---

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Jan
Sorry, my answer was total bogus. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email t

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Sebastian
> Shouldn't you use this? > $player->setPasswordConfirmation('1234'); Should it? Regarding the Doctrine documentation _set() and _get() should come into action. However: Setting the value by explicitly calling set() doesn't work, too. Same for $player ['password_confirmation']. I'm a bit helples

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Jan
Shouldn't you use this? $player->setPasswordConfirmation('1234'); - Jan On 20 Nov., 16:12, Sebastian <[EMAIL PROTECTED]> wrote: > Hi. > > I need some help - again ;) . > > In a unit test I'm doing something like this: > > $player->mapValue('password_confirmation', '0815'); > print $player->pas