|
- <?php
-
- namespace Lc\CaracoleBundle\Model\User;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
- use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
- use Lc\SovBundle\Model\User\GroupUserModel as SovGroupUserModel;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class GroupUserModel extends SovGroupUserModel implements FilterMerchantInterface
- {
- /**
- * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="groupUsers")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $merchant;
-
- public function getMerchant(): MerchantInterface
- {
- return $this->merchant;
- }
-
- public function setMerchant(MerchantInterface $merchant): self
- {
- $this->merchant = $merchant;
-
- return $this;
- }
-
- }
|