spadefoot / kohana-orm-leap

An ORM module for the Kohana PHP framework that is designed to work with all major databases.
http://spadefoot.github.io/kohana-orm-leap/
100 stars 25 forks source link

PHP Fatal error: Allowed memory size ... #72

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hey Guys,

i am using Leap ORM for a while, but i have a big problem now...

I have defined a Group Model. The database contains 800 rows and the model has a HasMany Relation to the Project Model and a BelongsTo Relation to the User Model.

If i fetch all 800 rows and will output the Group with User Name ($group->name AND $group->USER->username) i will get a blank page... the php error log says that the allowed memory size is exhausted by the script in "/modules/orm-leap/classes/Base/DB/Connection.php on line 299"

is this problem already known or did you have a quick solution to this? if i am not using the relations and fetch the username with a new DB_Orm::select('user').... i do not become this fatal error and everything works fine....

thx!