You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small addition: it happens, when the script faces some issues during the creation of the comment and it throws an exception. For example we can pass invalid node id - 12121212212121212121
The problem of the warning was, that the wrong method getTitle was used. Comment entity have getSubject method. Probably, code was copied from "Create node" command.
I noticed that there is no validation for node id, I have added it.
Also, I improved a little bit the structure of the code.
I have a question, how can I add the translated string for Node id validation?
Should I create a separate PR for drupal-console-en ?
create:comments outputs "Call to undefined method Drupal\comment\Entity\Comment::getTitle()"
How to reproduce
Setup
The text was updated successfully, but these errors were encountered: