| 1 | <?php |
||
| 22 | class MessageLog |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | * |
||
| 27 | * @ORM\Column(name="id", type="integer", nullable=false) |
||
| 28 | * @ORM\Id |
||
| 29 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 30 | */ |
||
| 31 | private $id; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var Message |
||
| 35 | * |
||
| 36 | * @ORM\ManyToOne(targetEntity="Message", cascade="remove") |
||
| 37 | * @ORM\JoinColumn(name="message_id", referencedColumnName="id", nullable=true) |
||
| 38 | */ |
||
| 39 | private $messageId; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var datetime |
||
| 43 | * |
||
| 44 | * @ORM\Column(name="date_log", type="datetime", nullable=false) |
||
| 45 | */ |
||
| 46 | private $dateLog; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var text |
||
| 50 | * |
||
| 51 | * @ORM\Column(name="log", type="text", nullable=false) |
||
| 52 | */ |
||
| 53 | private $log; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get id. |
||
| 57 | * |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | public function getId() |
||
| 61 | { |
||
| 62 | return $this->id; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Set messageId. |
||
| 67 | * |
||
| 68 | * @param Message $messageId |
||
| 69 | */ |
||
| 70 | public function setMessageId($messageId) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get messageId. |
||
| 77 | * |
||
| 78 | * @return Message |
||
| 79 | */ |
||
| 80 | public function getMessageId() |
||
| 81 | { |
||
| 82 | return $this->messageId; |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Set dateLog. |
||
| 87 | * |
||
| 88 | * @param \DateTime $dateLog |
||
| 89 | */ |
||
| 90 | public function setDateLog($dateLog) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Get dateLog. |
||
| 97 | * |
||
| 98 | * @return datetime |
||
| 99 | */ |
||
| 100 | public function getDateLog() |
||
| 101 | { |
||
| 102 | return $this->dateLog; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Set log. |
||
| 107 | * |
||
| 108 | * @param text $log |
||
| 109 | */ |
||
| 110 | public function setLog($log) |
||
| 114 | |||
| 115 | /** |
||
| 116 | * Get log. |
||
| 117 | * |
||
| 118 | * @return text |
||
| 119 | */ |
||
| 120 | public function getLog() |
||
| 124 | } |
||
| 125 |
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..