Thank you po! :thumbsup: :bow:
I replaced
```php
$this->id = $db->lastInsertId();
$comment->write($this->id); 
```
with ```php $comment->write($this->lastInsertId());``` po :bow: