src/Entity/Channel/ChannelConfiguration.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Channel;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Nellapp\Bundle\SDKBundle\Channel\Entity\Configuration\BaseChannelConfigurationInterface;
  5. use Nellapp\Bundle\SDKBundle\Channel\Entity\Configuration\BaseChannelConfigurationMethodTrait;
  6. #[ORM\Entity()]
  7. #[ORM\Table(name'channel_configuration')]
  8. class ChannelConfiguration implements BaseChannelConfigurationInterface
  9. {
  10.     use BaseChannelConfigurationMethodTrait;
  11.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer'nullablefalse)]
  12.     private ?int $id null;
  13.     #[ORM\OneToOne(mappedBy'configuration'targetEntityChannel::class, fetch'EAGER')]
  14.     #[ORM\JoinColumn(nullablefalseonDelete'CASCADE')]
  15.     private ?Channel $channel null;
  16.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => false])]
  17.     private bool $enabledCrm false;
  18. }