CompanyManager.php 695B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Doctrine\Tests\Models\Company;
  3. /**
  4. * @Entity
  5. * @Table(name="company_managers")
  6. */
  7. class CompanyManager extends CompanyEmployee
  8. {
  9. /**
  10. * @Column(type="string", length="250")
  11. */
  12. private $title;
  13. /**
  14. * @OneToOne(targetEntity="CompanyCar", cascade={"persist"})
  15. * @JoinColumn(name="car_id", referencedColumnName="id")
  16. */
  17. private $car;
  18. public function getTitle() {
  19. return $this->title;
  20. }
  21. public function setTitle($title) {
  22. $this->title = $title;
  23. }
  24. public function getCar() {
  25. return $this->car;
  26. }
  27. public function setCar(CompanyCar $car) {
  28. $this->car = $car;
  29. }
  30. }