src/Entity/Entity.php
public function fieldExists($field)
    {
        return in_array($field, $this->fields) || in_array($field, $this->generated_fields);
    }
public function fieldExists($field)
    {
        return in_array($field, $this->fields) || in_array($field, $this->generated_fields);
    }
{@inheritdoc}