diff --git a/src/Model/ElementAccordion.php b/src/Model/ElementAccordion.php index b01f644..9077767 100644 --- a/src/Model/ElementAccordion.php +++ b/src/Model/ElementAccordion.php @@ -19,8 +19,9 @@ * * @method \SilverStripe\ORM\ManyManyList Accordion() */ -class ElementAccordion extends BaseElement -{ +class ElementAccordion extends BaseElement { + + private static $cascade_duplicates = false; /** * @var string @@ -175,8 +176,4 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Accordion'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } } diff --git a/src/Model/ElementCarousel.php b/src/Model/ElementCarousel.php index f48a71e..336519e 100644 --- a/src/Model/ElementCarousel.php +++ b/src/Model/ElementCarousel.php @@ -19,8 +19,9 @@ * * @method \SilverStripe\ORM\ManyManyList Persons() */ -class ElementCarousel extends BaseElement -{ +class ElementCarousel extends BaseElement { + + private static $cascade_duplicates = false; /** * @var string @@ -175,8 +176,4 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Carousel'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } } diff --git a/src/Model/ElementGallery.php b/src/Model/ElementGallery.php index 612f25f..ededc96 100644 --- a/src/Model/ElementGallery.php +++ b/src/Model/ElementGallery.php @@ -24,10 +24,9 @@ * * does not need ShowTitle */ -class ElementGallery extends BaseElement -{ - +class ElementGallery extends BaseElement { + private static $cascade_duplicates = false; /** * @var string */ @@ -174,8 +173,4 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Media Gallery'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } } diff --git a/src/Model/ElementImageGallery.php b/src/Model/ElementImageGallery.php index b33de6b..f6184c9 100644 --- a/src/Model/ElementImageGallery.php +++ b/src/Model/ElementImageGallery.php @@ -20,9 +20,9 @@ * * does not need ShowTitle */ -class ElementImageGallery extends BaseElement -{ +class ElementImageGallery extends BaseElement { + private static $cascade_duplicates = false; /** * @var string @@ -167,8 +167,5 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Image Gallery'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + } diff --git a/src/Model/ElementLinks.php b/src/Model/ElementLinks.php index 4d28ccb..1c9af48 100644 --- a/src/Model/ElementLinks.php +++ b/src/Model/ElementLinks.php @@ -24,8 +24,9 @@ * * does not need ShowTitle */ -class ElementLinks extends BaseElement -{ +class ElementLinks extends BaseElement { + + private static $cascade_duplicates = false; /** @@ -174,8 +175,5 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Links'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + } diff --git a/src/Model/ElementPersons.php b/src/Model/ElementPersons.php index 17445f3..dc7d844 100644 --- a/src/Model/ElementPersons.php +++ b/src/Model/ElementPersons.php @@ -19,8 +19,9 @@ * * @method \SilverStripe\ORM\ManyManyList Persons() */ -class ElementPersons extends BaseElement -{ +class ElementPersons extends BaseElement { + + private static $cascade_duplicates = false; /** * @var string @@ -175,8 +176,5 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Persons'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + } diff --git a/src/Model/ElementPopups.php b/src/Model/ElementPopups.php index 1191c6e..87d3dee 100644 --- a/src/Model/ElementPopups.php +++ b/src/Model/ElementPopups.php @@ -22,8 +22,10 @@ * * @method \SilverStripe\ORM\ManyManyList Popups() */ -class ElementPopups extends BaseElement -{ +class ElementPopups extends BaseElement { + + private static $cascade_duplicates = false; + /** * @var string */ @@ -181,8 +183,5 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Popups'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + } diff --git a/src/Model/ElementPromos.php b/src/Model/ElementPromos.php index d25d638..23928a1 100644 --- a/src/Model/ElementPromos.php +++ b/src/Model/ElementPromos.php @@ -22,8 +22,9 @@ * * @method \SilverStripe\ORM\ManyManyList Promos() */ -class ElementPromos extends BaseElement -{ +class ElementPromos extends BaseElement { + + private static $cascade_duplicates = false; /** * @var string */ @@ -181,8 +182,5 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Promos'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + } diff --git a/src/Model/ElementSlides.php b/src/Model/ElementSlides.php index 8f95d2d..45e542f 100644 --- a/src/Model/ElementSlides.php +++ b/src/Model/ElementSlides.php @@ -25,8 +25,9 @@ * * does not need ShowTitle */ -class ElementSlides extends BaseElement -{ +class ElementSlides extends BaseElement { + + private static $cascade_duplicates = false; /** @@ -189,8 +190,5 @@ public function getType() return _t(__CLASS__.'.BlockType', 'Slides'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + } diff --git a/src/Model/ElementSponsors.php b/src/Model/ElementSponsors.php index 3b544e0..d705db8 100644 --- a/src/Model/ElementSponsors.php +++ b/src/Model/ElementSponsors.php @@ -19,8 +19,9 @@ * * @method \SilverStripe\ORM\ManyManyList Persons() */ -class ElementSponsors extends BaseElement -{ +class ElementSponsors extends BaseElement { + + private static $cascade_duplicates = false; /** * @var string @@ -180,8 +181,5 @@ public function isCarousel() { return ($this->Style == 'carousel'); } - public function duplicate($doWrite = true, $relations = null) { - $object = parent::duplicate($doWrite, false); - return $object; - } + }