Remove the column is_woocommerce_synced
[MAILPOET-3954]
This commit is contained in:
@@ -150,12 +150,6 @@ class SubscriberEntity {
|
||||
*/
|
||||
private $woocommerceSyncedAt;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
* @var bool
|
||||
*/
|
||||
private $isWoocommerceSynced = false;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="MailPoet\Entities\SubscriberSegmentEntity", mappedBy="subscriber", orphanRemoval=true)
|
||||
* @var Collection<int, SubscriberSegmentEntity>
|
||||
@@ -472,14 +466,6 @@ class SubscriberEntity {
|
||||
return $this->woocommerceSyncedAt;
|
||||
}
|
||||
|
||||
public function getIsWoocommerceSynced(): bool {
|
||||
return $this->isWoocommerceSynced;
|
||||
}
|
||||
|
||||
public function setIsWoocommerceSynced(bool $isWoocommerceSynced): void {
|
||||
$this->isWoocommerceSynced = $isWoocommerceSynced;
|
||||
}
|
||||
|
||||
/** @ORM\PreFlush */
|
||||
public function cleanupSubscriberSegments(): void {
|
||||
// Delete old orphan SubscriberSegments to avoid errors on update
|
||||
|
Reference in New Issue
Block a user