| 1 | <?php |
||
| 14 | class Activity |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var integer |
||
| 18 | * |
||
| 19 | * @ORM\Column(name="id", type="integer", nullable=false) |
||
| 20 | * @ORM\Id |
||
| 21 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 22 | */ |
||
| 23 | private $id; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | * |
||
| 28 | * @ORM\Column(name="name", type="string", length=255, nullable=true) |
||
| 29 | */ |
||
| 30 | private $name; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var \Sector |
||
| 34 | * |
||
| 35 | * @ORM\ManyToOne(targetEntity="Sector") |
||
| 36 | * @ORM\JoinColumns({ |
||
| 37 | * @ORM\JoinColumn(name="sector_id", referencedColumnName="id") |
||
| 38 | * }) |
||
| 39 | */ |
||
| 40 | private $sector; |
||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 | /** |
||
| 46 | * Gets the value of id. |
||
| 47 | * |
||
| 48 | * @return integer |
||
| 49 | */ |
||
| 50 | public function getId() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Gets the value of name. |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getName() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Sets the value of name. |
||
| 67 | * |
||
| 68 | * @param string $name the name |
||
| 69 | * |
||
| 70 | * @return self |
||
| 71 | */ |
||
| 72 | public function setName($name) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Gets the }). |
||
| 81 | * |
||
| 82 | * @return \Sector |
||
| 83 | */ |
||
| 84 | public function getSector() |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Sets the }). |
||
| 91 | * |
||
| 92 | * @param \Sector $sector the sector |
||
| 93 | * |
||
| 94 | * @return self |
||
| 95 | */ |
||
| 96 | public function setSector(Sector $sector) |
||
| 102 | } |
||
| 103 | |||
| 104 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..