ebs/src/Entity/GroupOffer.php
Sarahshr b9a87a420b
Feat/disable services option for groups (#711)
* add servicesDisabled field for groups and for global configuration

* fixup! add servicesDisabled field for groups and for global configuration

* comment libcurl upgrade to fix ci temporarly

* upgrade caddy version

* review

* fix test

* feat: add paying membership option (#714)

* feat: add paying membership option

* fix: ci

* fix: phpstan + review

* fix: eslint ci
2024-10-08 09:40:23 +02:00

36 lines
776 B
PHP

<?php
declare(strict_types=1);
namespace App\Entity;
use App\Doctrine\Behavior\AbstractOfferEntity;
use App\Repository\GroupOfferRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: GroupOfferRepository::class)]
#[ORM\Table(name: 'group_offer')]
#[ORM\Index(columns: ['type'])]
class GroupOffer extends AbstractOfferEntity
{
/**
* Related group.
*/
#[Assert\NotNull]
#[ORM\ManyToOne(inversedBy: 'offers')]
#[ORM\OrderBy(['createdAt' => 'ASC'])]
private Group $group;
public function getGroup(): Group
{
return $this->group;
}
public function setGroup(Group $group): self
{
$this->group = $group;
return $this;
}
}