private function checkForPrimary(GeneratorField $field)
    {
        if ($field->name == $this->primaryKey) {
            $field->isPrimary = true;
            $field->isFillable = false;
            $field->isSearchable = false;
            $field->inIndex = false;
            $field->inForm = false;
        }

        return $field;
    }
private function checkForPrimary(GeneratorField $field)
    {
        if ($field->name == $this->primaryKey) {
            $field->isPrimary = true;
            $field->isFillable = false;
            $field->isSearchable = false;
            $field->inIndex = false;
            $field->inForm = false;
        }

        return $field;
    }
private function checkForPrimary ( GeneratorField $ field ) { if ( $ field -> name == $ this -> primaryKey ) { $ field -> isPrimary = true ; $ field -> isFillable = false ; $ field -> isSearchable = false ; $ field -> inIndex = false ; $ field -> inForm = false ; } return $ field ; }
Check if key is primary key and sets field options.

@param GeneratorField $field

@return GeneratorField
Check if key is primary key and sets field options .