Nice tip! I didn't know about that class. I'll play a little bit with it.

Thanks a lot!

On Mon, Nov 22, 2010 at 7:02 AM, Bernhard Schussek <bschus...@gmail.com>wrote:

> 2010/11/22 Gustavo Adrian <comfortablynum...@gmail.com>:
> > Ok. Then I'll keep using the standard way.
>
> I really recommend this.
>
> BTW: If you ever need to dynamically inject or read data from object
> graphs, you can use the PropertyPath class.
>
> foreach (array('firstName', 'address.street', 'emails[0].address',
> ...) as $property) {
>  $path = new Symfony\Component\Form\PropertyPath($property);
>
>  var_dump($path->getValue($myObject));
>  $path->setValue($myObject, 'new value');
> }
>
> Cheers,
> Bernhard
>
> --
> Software Architect & Engineer
> Blog: http://webmozarts.com
> Twitter: http://twitter.com/webmozart
>
> --
> 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<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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