CC-4636: Exception happens when trying to remove user that have created some smart block

- doing delete cascade on cc_block on deleting users
This commit is contained in:
James 2012-11-01 17:45:28 -04:00
parent b746f65304
commit feb6c9d6f5
5 changed files with 7 additions and 4 deletions

View file

@ -407,6 +407,9 @@ abstract class BaseCcSubjsPeer {
// Invalidate objects in CcPlaylistPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcPlaylistPeer::clearInstancePool();
// Invalidate objects in CcBlockPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcBlockPeer::clearInstancePool();
// Invalidate objects in CcPrefPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcPrefPeer::clearInstancePool();