symfony - Symfony2 joined data passed to View -


I am passing some data in a data that has been added. The inclusion is working properly, because it depends on me that I can see the number of results chosen to join or leave the election. My query is:

  $ query = $ repository-> CreateQueryBuilder ('p') - & gt; Join ('p.skill', 's') - & gt; GetQuery (); $ People2 = $ query- & gt; GetResult (); $ $ --- ($ StudioRaygunTeamBundle: Default: index.html.twig ', Return Array (' People2 '=> $ People2));  

and my view:

  & lt; Ul & gt; For {% People in person2%} & lt; Li & gt; {{Person} first name}} {{person.Surname}} {person. skill.skill%} {{skill.skillname}} {% endfor%} & lt; / Li & gt; {% Endfor%} & lt; / Ul & gt;  

No error is thrown, unless I can change some properties in curly braces - this means that the data that is being received is correct (this is, And this unit matches the squares).

But nothing under the skill. Scale name (person's first name looks fine!).

If I try to dump, I get empty screen and PHP memory error, which is troublesome, so I can not debug it.

Then wrap - my data is correct (no error) and my syntax, which I have read, is also correct - but no data is returned to the skill. Skilman (person first name appears as expected).

Choosing to add: / H2>

You also have to choose the entities you add :

  $ query = $ repository-> createQueryBuilder ('p') - & gt; Add sign ('s') - & gt; Join ('p.skill', 's') - & gt; GetQuery ();  

Dump:

Variables that are populated by Doctrine2 are proxy classes for your own unit classes and they have references to Doctor 2 Internal. Recycling in these cases is imminent. And with recycling you will always move the memory limit.

This is because there are several ways of debugging, such as using xdebug or zend debugger to observe actual data.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -