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
ContextErrorException: Catchable Fatal Error: Object of class Proxies\__CG__\Ekino\WordpressBundle\Entity\User could not be converted to string in /var/www/opos/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php line 120
I need create in the user entity (Ekino\WordpressBundle\Entity\User) the next method:
public function __toString()
{
return $this->getUsername();
}
Then I have this error.
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'comment_parent' cannot be null
In summary, when I want create a comment. Are all fields are required? In wordpress the parent field is not required. This also happens in the fields, agent, authorUrl, user....
The text was updated successfully, but these errors were encountered:
How I can create a comment?
If I use this code, doctrine return:
I need create in the user entity (Ekino\WordpressBundle\Entity\User) the next method:
Then I have this error.
In summary, when I want create a comment. Are all fields are required? In wordpress the parent field is not required. This also happens in the fields, agent, authorUrl, user....
The text was updated successfully, but these errors were encountered: