Yii Framework Forum: Problem With Activerecord Findall() - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem With Activerecord Findall() Rate Topic: -----

#1 User is offline   Backslider 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 363
  • Joined: 23-July 09

Posted 23 December 2013 - 01:12 AM

I have a weird problem with ActiveRecord with a particular class.

When calling findAll() I get a blank page. No errors at all displaying even though I have full error reporting switched on. Yii log shows nada.

I have tried switching off both relations and rules in the class and still nothing.

findByPk works just fine, calling this within the same class method as a test.

Has anybody ever encountered something like this?
We were all once expert at....... nothing.

yii-language-behavior

My Blog
0

#2 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 23 December 2013 - 01:24 AM

If you're sure error logging is enabled and logs are still empty this could be caused by the '@' operator that supresses a fatal error.
The fastest way to confirm that and locate the error is to debug step by step using xdebug.

Does this happen in multiple enviroments? That is, on your production server and dev machine?
Don't be a dick.
0

#3 User is offline   Backslider 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 363
  • Joined: 23-July 09

Posted 23 December 2013 - 08:07 AM

The application is in my dev environment. So far I have only spotted the problem with one particular class.

Logging is definitely switched on - I tested it also by deliberately throwing an error.

My environment has xdebug and it picks up nada.

If I set xdebug.scream = 1 then the script halts on @session_start(); in framework/web/CHttpSession.php.... which is really sloppy coding in my opinion!
We were all once expert at....... nothing.

yii-language-behavior

My Blog
0

#4 User is offline   Backslider 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 363
  • Joined: 23-July 09

Posted 23 December 2013 - 08:41 AM

Turned out simply to be the ActiveRecord object consuming too much memory for what I thought was a relatively small result set.

Moving over to DAO instead..... (again).
We were all once expert at....... nothing.

yii-language-behavior

My Blog
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users