Are you trying to do this while creating a new object, or editing an
object? or both?

In which method do you have this code?


On 25 ún, 11:22, verox <pawel.rz...@gmail.com> wrote:
> Hello,
> Got some problem,
> Have name and letter in table, both string.
> I've generate admin page, now I'm trying to set letter (first letter
> of name)
> Tried this:
>  $form->getObject()->setLetter(strtoupper(substr($form->getObject()->getName(),
>  0, 1)));
>
> should work for me, but getName() returns NULL, inspite of saving good
> in database.
> Is it some kind of protected data or something? How to overwrite this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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 to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to