Hello,
I am not sure why I triggered this, or if I am right or anything, but I was working on my app last night and got this fatal error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 49 bytes) in /it/doesn't/matter/Recess/recess/lib/recess/database/pdo/PdoDataSet.class.php on line 78
It seems to be caused when I place "$this->Con_Vote_Count = $this->Votes()->count();" inside the constructor of my Contestant model.
Any ideas? I thought it was the fault of deep cloning, as that is what is going on at line 78 of PdoDataSet.class.php. But I am not so sure...
nevermind, I more than got it... moooore than got it...
WOW...
Recess! is some powerful stuff! Sure, virtual methods are a bit of a trick to work around, but I am in awe at the possibilities...
Huh... now I changed it to "$this->Con_Vote_Count = self::Votes()->count();" (I don't know why, I think I read that somewhere) and it at least runs to the Recess! diagnostics screen, but now it says:
"Contestant" class does not contain a method or an attached method named "votes".
When on the model descriptor page, it clearly states "Votes()" as an attached method in Contestants.
It is a HasMany relationship.
Ideas?