2015-10-31 17:19:39 +01:00
|
|
|
<?php
|
|
|
|
|
2016-10-26 13:24:33 -03:00
|
|
|
|
2015-10-31 17:19:39 +01:00
|
|
|
namespace Doctrine\Tests\Models\DDC3711;
|
|
|
|
|
|
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
|
2016-10-26 13:24:33 -03:00
|
|
|
/**
|
|
|
|
* @author Marc Pantel <pantel.m@gmail.com>
|
|
|
|
*/
|
2015-10-31 17:19:39 +01:00
|
|
|
class DDC3711EntityB
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
private $id1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
private $id2;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var ArrayCollection
|
|
|
|
*/
|
|
|
|
private $entityA;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId1()
|
|
|
|
{
|
|
|
|
return $this->id1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $id1
|
|
|
|
*/
|
|
|
|
public function setId1($id1)
|
|
|
|
{
|
|
|
|
$this->id1 = $id1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId2()
|
|
|
|
{
|
|
|
|
return $this->id2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $id2
|
|
|
|
*/
|
|
|
|
public function setId2($id2)
|
|
|
|
{
|
|
|
|
$this->id2 = $id2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return ArrayCollection
|
|
|
|
*/
|
|
|
|
public function getEntityA()
|
|
|
|
{
|
|
|
|
return $this->entityA;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param ArrayCollection $entityA
|
|
|
|
*/
|
|
|
|
public function addEntityA($entityA)
|
|
|
|
{
|
|
|
|
$this->entityA[] = $entityA;
|
|
|
|
}
|
|
|
|
|
2016-10-26 13:24:33 -03:00
|
|
|
}
|