CRUDlex\EntityDefinition::getFieldNames PHP Method

getFieldNames() public method

Gets all field names, including the implicit ones like "id" or "created_at".
public getFieldNames ( boolean $includeMany = false ) : string[]
$includeMany boolean whether to include the many fields as well
return string[] the field names
    public function getFieldNames($includeMany = false)
    {
        $fieldNames = $this->getReadOnlyFields();
        foreach ($this->fields as $field => $value) {
            if ($includeMany || $this->getType($field) !== 'many') {
                $fieldNames[] = $field;
            }
        }
        return $fieldNames;
    }