yes it works in both the ways.. i think it's best practice to assign the object to a variable.. so you don't have every time you use a get method to inizialize the object. But it works also in you way.
On 21 Ott, 15:11, Eno <[email protected]> wrote: > On Wed, 21 Oct 2009, cosmy wrote: > > What does they return? > > A Question object? > > Yes. > > > Something like: > > $q=$p->getQuestion(); > > $q->getQuestionField(); > > Probably should be: > > $field = $p->getQuestion()->getQuestionField(); > > See > docs:http://www.symfony-project.org/book/1_2/08-Inside-the-Model-Layer#cha... > > -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
