2010/11/22 Gustavo Adrian <[email protected]>:
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to