<?php
namespace App\Entity\Channel;
use Doctrine\ORM\Mapping as ORM;
use Nellapp\Bundle\SDKBundle\Channel\Entity\Configuration\BaseChannelConfigurationInterface;
use Nellapp\Bundle\SDKBundle\Channel\Entity\Configuration\BaseChannelConfigurationMethodTrait;
#[ORM\Entity()]
#[ORM\Table(name: 'channel_configuration')]
class ChannelConfiguration implements BaseChannelConfigurationInterface
{
use BaseChannelConfigurationMethodTrait;
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer', nullable: false)]
private ?int $id = null;
#[ORM\OneToOne(mappedBy: 'configuration', targetEntity: Channel::class, fetch: 'EAGER')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private ?Channel $channel = null;
#[ORM\Column(type: 'boolean', nullable: false, options: ['default' => false])]
private bool $enabledCrm = false;
}