Aquí tienes las 3 entidades.
Te lo pongo en 2 mensajes porque no me deja poner la respuesta más larga de 10000 caracteres.
InstCom.php
Código PHP:
<?php
namespace VnfqInstComBundleEntity;
use DoctrineORMMapping as ORM;
/**
* InstCom
*
* @ORM\Table(name="installations_companies")
* @ORM\Entity(repositoryClass="Vnfq\InstComBundle\Repository\InstComRepository")
*/
class InstCom
{
/**
* @ORM\ManyToOne(targetEntity="District", inversedBy="instcom")
* @ORM\JoinColumn(name="district_id", referencedColumnName="id")
*/
protected $district;
/**
* @ORM\ManyToOne(targetEntity="State", inversedBy="instcom")
* @ORM\JoinColumn(name="state_id", referencedColumnName="id")
*/
protected $state;
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=100)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="cnpj", type="string", length=50, nullable=true)
*/
private $cnpj;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=100, nullable=true)
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=50, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="cell_phone", type="string", length=50, nullable=true)
*/
private $cellPhone;
/**
* @var int
*
* @ORM\Column(name="district_id", type="integer")
*/
private $district_id;
/**
* @var int
*
* @ORM\Column(name="city", type="string", length=100, nullable=true)
*/
private $city;
/**
* @var int
*
* @ORM\Column(name="state_id", type="integer")
*/
private $state_id;
/**
* @var string
*
* @ORM\Column(name="country", type="string", length=100, nullable=true)
*/
private $country;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
* @return InstCom
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set cnpj
*
* @param string $cnpj
* @return InstCom
*/
public function setCnpj($cnpj)
{
$this->cnpj = $cnpj;
return $this;
}
/**
* Get cnpj
*
* @return string
*/
public function getCnpj()
{
return $this->cnpj;
}
/**
* Set email
*
* @param string $email
* @return InstCom
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set phone
*
* @param string $phone
* @return InstCom
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set cellPhone
*
* @param string $cellPhone
* @return InstCom
*/
public function setCellPhone($cellPhone)
{
$this->cellPhone = $cellPhone;
return $this;
}
/**
* Get cellPhone
*
* @return string
*/
public function getCellPhone()
{
return $this->cellPhone;
}
/**
* Set district_id
*
* @param string $district_id
* @return InstCom
*/
public function setDistrict($district_id)
{
$this->district_id = $district_id;
return $this;
}
/**
* Get district_id
*
* @return string
*/
public function getDistrict()
{
return $this->district_id;
}
/**
* Set city
*
* @param integer $city
* @return InstCom
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return integer
*/
public function getCity()
{
return $this->city;
}
/**
* Set state_id
*
* @param integer $state_id
* @return InstCom
*/
public function setState($state_id)
{
$this->state_id = $state_id;
return $this;
}
/**
* Get state_id
*
* @return integer
*/
public function getState()
{
return $this->state_id;
}
/**
* Set country
*
* @param string $country
* @return InstCom
*/
public function setCountyr($country)
{
$this->country = $country;
return $this;
}
/**
* Get country
*
* @return string
*/
public function getCountyr()
{
return $this->country;
}
/**
* Set district_id
*
* @param integer $districtId
* @return InstCom
*/
public function setDistrictId($districtId)
{
$this->district_id = $districtId;
return $this;
}
/**
* Get district_id
*
* @return integer
*/
public function getDistrictId()
{
return $this->district_id;
}
/**
* Set state_id
*
* @param integer $stateId
* @return InstCom
*/
public function setStateId($stateId)
{
$this->state_id = $stateId;
return $this;
}
/**
* Get state_id
*
* @return integer
*/
public function getStateId()
{
return $this->state_id;
}
/**
* Set country
*
* @param string $country
* @return InstCom
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country
*
* @return string
*/
public function getCountry()
{
return $this->country;
}
}