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
This commit is contained in:
Ingo Schommer 2007-09-16 01:05:04 +00:00
parent 5303c3ba2f
commit 456ce4ebcc

View File

@ -129,9 +129,11 @@ class Newsletter_SentRecipient extends DataObject {
static $db = array( static $db = array(
"ParentID" => "Int", "ParentID" => "Int",
"Email" => "Varchar(255)", "Email" => "Varchar(255)",
"MemberID" => "Int",
"Result" => "Enum('Sent, Failed, Bounced', 'Sent')", "Result" => "Enum('Sent, Failed, Bounced', 'Sent')",
); );
static $has_one = array(
"Member" => "Member",
);
} }
class Newsletter_Recipient extends DataObject { class Newsletter_Recipient extends DataObject {
static $db = array( static $db = array(