From 456ce4ebccc0fb65f520366efb509186cbe7d6ee Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 01:05:04 +0000 Subject: [PATCH] elofgren: In Newsletter_SentRecipient, instead of putting 'MemberId?' in $db put 'Member' in $has_one in order to be consistent with Newsletter_Recipient and Email_BounceRecord. This does not change the structure of the Newsletter_SentRecipient table, but does add an Index on the MemberID column. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42005 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/Newsletter/Newsletter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/Newsletter/Newsletter.php b/code/Newsletter/Newsletter.php index f67e093f..58bc6200 100755 --- a/code/Newsletter/Newsletter.php +++ b/code/Newsletter/Newsletter.php @@ -129,9 +129,11 @@ class Newsletter_SentRecipient extends DataObject { static $db = array( "ParentID" => "Int", "Email" => "Varchar(255)", - "MemberID" => "Int", "Result" => "Enum('Sent, Failed, Bounced', 'Sent')", ); + static $has_one = array( + "Member" => "Member", + ); } class Newsletter_Recipient extends DataObject { static $db = array(