I just found out that the values' extraction method is defineable.

Therefore, instead of *$this->setHydrator( new ObjectProperty() );*, I
did *$this->setHydrator(
new ClassMethods() );*.

Solved it.

Thanks,

*Thales Vaz Maciel*
Bacharel em Sistemas de Informação - Universidade da Região da Campanha,
Bagé, RS, Brasil
Especialista em Sistemas Distribuídos - Universidade Federal do Pampa,
Bagé, RS, Brasil
Mestrando em Engenharia de Computação - Universidade Federal do Rio Grande,
Rio Grande, RS, Brasil
Informata de Nível Superior - Prefeitura Municipal de Bagé, Bagé, RS, Brasil
http://lattes.cnpq.br/7166030596636868
F: +55 (53) 99419258 (novo)

2016-07-14 20:54 GMT-03:00 Thales Maciel <[email protected]>:

> Hello, guys.
>
> I'm trying to hydrate a populate a form via hydration with an Entity. The
> entity has protected attributes and corresponding getters. I can't get it
> to work, though. The form gets populated only if I change the entity's
> attributes' visibility to public.
>
> Is this correct? Do I really need to break encapsulation or am I missing
> something?
>
> Thanks a lot.
>
> *Thales Vaz Maciel*
> Bacharel em Sistemas de Informação - Universidade da Região da Campanha,
> Bagé, RS, Brasil
> Especialista em Sistemas Distribuídos - Universidade Federal do Pampa,
> Bagé, RS, Brasil
> Mestrando em Engenharia de Computação - Universidade Federal do Rio
> Grande, Rio Grande, RS, Brasil
> Informata de Nível Superior - Prefeitura Municipal de Bagé, Bagé, RS,
> Brasil
> http://lattes.cnpq.br/7166030596636868
> F: +55 (53) 99419258 (novo)
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to