コード例 #1
0
	/**
	 * Enable the soft_delete behavior for this model
	 */
	public static function enableSoftDelete()
	{
		AbsenceEleveTraitementQuery::enableSoftDelete();
		// some soft_deleted objects may be in the instance pool
		AbsenceEleveTraitementPeer::clearInstancePool();
	}
コード例 #2
0
	/**
	 * Method to invalidate the instance pool of all tables related to a_justifications
	 * by a foreign key with ON DELETE CASCADE
	 */
	public static function clearRelatedInstancePool()
	{
		// Invalidate objects in AbsenceEleveTraitementPeer instance pool,
		// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
		AbsenceEleveTraitementPeer::clearInstancePool();
	}