Destroying an ActiveRecord with a hasOne-Association now cascades even when the assoc...
commit86f00a60a332265b2f952ee972c37cc1bb10e751
authorkaste <kaste@a2fa5c27-f921-0410-a72c-bf682d381be0>
Sat, 23 Feb 2008 01:02:38 +0000 (23 01:02 +0000)
committerkaste <kaste@a2fa5c27-f921-0410-a72c-bf682d381be0>
Sat, 23 Feb 2008 01:02:38 +0000 (23 01:02 +0000)
tree4b3d58b630dfbb62be9fc46d02a9fcbdf27e84fa
parentdc38507adb8ace82170d94984e0083352a869e52
Destroying an ActiveRecord with a hasOne-Association now cascades even when the associated object has not been loaded. We simply call ->load() in the afterDestroy()-hook.

Fixes #125

git-svn-id: http://svn.akelos.org/trunk@486 a2fa5c27-f921-0410-a72c-bf682d381be0
lib/AkActiveRecord/AkAssociations/AkHasOne.php