/** * @param \Shopware\Models\Newsletter\Container $container * @return \Shopware\Models\Newsletter\Container */ public function setContainer($container) { $this->container = $container; $container->setType('ctArticles'); }
/** * @param \Shopware\Models\Newsletter\Container $container * @return \Shopware\Models\Newsletter\Container */ public function setContainer($container) { $this->container = $container; $container->setType('ctBanner'); // return $this->setOneToOne($container, '\Shopware\Models\Newsletter\Container', 'container', 'banner'); }
/** * @param \Shopware\Models\Newsletter\Container $container * @param string $type * @return \Shopware\Models\Newsletter\Container */ public function setContainer($container, $type = 'ctText') { $this->container = $container; $container->setType($type); // return $this->setOneToOne($container, '\Shopware\Models\Newsletter\Container', 'container', 'text'); }