<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Contact;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\ContactGroupRepo")
* @ORM\Table(name="contact_group")
*/
class ContactGroup
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $contactGroupId=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $contactGroupName='';
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $image1;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $contactGroupBoard;
//#[ManyToMany(targetEntity: User::class, mappedBy: 'groups')]
/*
* @ORM\ManyToMany(targetEntity="Contact", mappedBy="contactGroups")
*/
/*
* Many ContactGroups have one Contact. This is the owning side.
* @ORM\ManyToOne(targetEntity="App\Entity\Contact", inversedBy="contactGroups")
* @ORM\JoinColumn(name="contact_id", referencedColumnName="contact_id")
*/
//private $contact;
public function __construct()
{
$this->contacts = new ArrayCollection();
$this->contact = new ArrayCollection();
}
/**
* Get contactGroupId
*
* @return integer
*/
public function getContactGroupId()
{
return $this->contactGroupId;
}
/**
* Set contactGroupName
*
* @param string $contactGroupName
*
* @return ContactGroup
*/
public function setContactGroupName($contactGroupName)
{
$this->contactGroupName = $contactGroupName;
return $this;
}
/**
* Get contactGroupName
*
* @return string
*/
public function getContactGroupName()
{
return $this->contactGroupName;
}
/**
* Set email
*
* @param string $email
*
* @return ContactGroup
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set image1
*
* @param string $image1
*
* @return ContactGroup
*/
public function setImage1($image1)
{
$this->image1 = $image1;
return $this;
}
/**
* Get image1
*
* @return string
*/
public function getImage1()
{
return $this->image1;
}
/**
* Set contactGroupBoard
*
* @param string $contactGroupBoard
*
* @return ContactGroup
*/
public function setContactGroupBoard($contactGroupBoard)
{
$this->contactGroupBoard = $contactGroupBoard;
return $this;
}
/**
* Get contactGroupBoard
*
* @return string
*/
public function getContactGroupBoard()
{
return $this->contactGroupBoard;
}
}