mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
5303c3ba2f
commit
456ce4ebcc
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user