[Solar-talk] Memory problems
Jeff Moore
jeff at procata.com
Tue Nov 13 17:31:54 CST 2007
On Nov 13, 2007, at 8:56 AM, Paul M Jones wrote:
> * Sounds like we need a __destruct() method for the record class
> that kills off child objects (like relateds, other models, etc).
> Perhaps we need to go back through *all* the model classes and check
> for parent/child circular relationships.
Hello,
I think its a bit misleading to use the __destruct() method for this
purpose and call it manually. May I suggest an alternative name, such
as free() that doesn't imply that it will be called automatically and
that won't be performing a redundant operation, as unset is in
__destruct when that method is called automatically?
Best Regards,
Jeff
More information about the Solar-talk
mailing list