|
|
@@ -5,11 +5,12 @@ namespace Lc\ShopBundle\Model; |
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
|
use Doctrine\Common\Collections\Collection; |
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
use Lc\ShopBundle\Context\FilterMerchantInterface; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ORM\MappedSuperclass() |
|
|
|
*/ |
|
|
|
class Section extends AbstractDocumentEntity |
|
|
|
abstract class Section extends AbstractDocumentEntity implements FilterMerchantInterface |
|
|
|
{ |
|
|
|
/** |
|
|
|
* @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\MerchantInterface") |
|
|
@@ -43,6 +44,11 @@ class Section extends AbstractDocumentEntity |
|
|
|
$this->orderShops = new ArrayCollection(); |
|
|
|
} |
|
|
|
|
|
|
|
public function __toString() |
|
|
|
{ |
|
|
|
return $this->getTitle(); |
|
|
|
} |
|
|
|
|
|
|
|
public function getCycle(): ?string |
|
|
|
{ |
|
|
|
return $this->cycle; |