Template load truncate when using multiple queries

Discussion relating to version 1.3.x and 1.4.x

Template load truncate when using multiple queries

Postby edugonch » Wed Nov 18, 2009 1:37 am

Hello, I have a problem with executing queries in symfony.

I excecute some queries with Doctrine::getTable and where, addWhere

and fetchOne.

I modify a class so I insert this function to run this queries, 3 in total, but when reload the project to taste it, the main layout is truncate and only show the module template, not header, no metas, no html definition.

When I remove the function call from the template, I get all normal.


If I run the page with frontend_dev.php I get the same, but I can't see the debug bar.

Curiously the function works good, I get the result what I want, but truncate the main template......
edugonch
Junior Member
 
Posts: 6
Joined: Fri Nov 13, 2009 4:54 pm

Re: Template load truncate when using multiple queries

Postby mugen » Wed Nov 18, 2009 2:19 pm

hello,

show your log on symfony and see if you have an error.
mugen
Member
 
Posts: 53
Joined: Sat Oct 24, 2009 1:07 pm

Re: Template load truncate when using multiple queries

Postby edugonch » Wed Nov 18, 2009 4:14 pm

There is not an error, It seems that is a symfony bug, I bring all the data in the database, like 600 registers, but, when I use a limit in 50, all works ok.

So symfony has a problem inside.
edugonch
Junior Member
 
Posts: 6
Joined: Fri Nov 13, 2009 4:54 pm

Re: Template load truncate when using multiple queries

Postby halfer » Wed Nov 18, 2009 4:23 pm

It might do, it might not do. You may just be running out of memory - in which case you should increase your memory limit in php.ini.

In many cases where you are retrieving data for a web application, 600 rows of something is generally too many anyway. It may be a suitable candidate for paging.
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 6 guests