| 1 | <?php |
||
| 26 | class RelatedDummy |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @ORM\Column(type="integer") |
||
| 30 | * @ORM\Id |
||
| 31 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 32 | */ |
||
| 33 | private $id; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var int The age. |
||
| 37 | * |
||
| 38 | * @ORM\Column(type="integer", nullable=true) |
||
| 39 | */ |
||
| 40 | private $age; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @ORM\Column |
||
| 44 | * @Groups({"barcelona", "chicago"}) |
||
| 45 | */ |
||
| 46 | protected $symfony = 'symfony'; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var AnotherDummy |
||
| 50 | * |
||
| 51 | * @ORM\ManyToOne(targetEntity="AnotherDummy") |
||
| 52 | */ |
||
| 53 | public $anotherDummy; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public function getId() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return int |
||
| 65 | */ |
||
| 66 | public function getAge() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param $symfony |
||
| 73 | */ |
||
| 74 | public function setSymfony($symfony) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getSymfony() |
||
| 86 | } |
||
| 87 |