Hi Bernhard,
I was thinking on delegating the data binding to a separated component just
for convenience to make possible this:
$dataBinder = new DataBinder( $myObject, $validator );
$dataBinder->bind( $data );
if ( $dataBinder->isValid() )
{
// ...
}
I'd use the same interface of the Form component for convenience too. And
with a separated component I would able to inject some logic in the binding
process if I need to.
What do you think?
Thanks!
On Sun, Nov 21, 2010 at 4:18 PM, Bernhard Schussek <[email protected]>wrote:
> Hi Gustavo,
>
> You did exactly the right thing. Just call the setters of your object
> (that's all that a Form does really). Why do you need any more
> abstraction?
>
> 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]<symfony-users%[email protected]>
> 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 [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