In my case, my colleagues had overwritten the getParent()
method in this way:
public function getParent()
{
return new Cliente();
}
After changing to this, the error dissapearead:
public function getParent()
{
return Cliente::class;
}