Skip to content

make:entity field types categories #1780

@Mynyx

Description

@Mynyx

The command php bin/console make:entity shows the possible field types grouped in categories. Some field types that have been added over time appear under Other Types, even though they would belong to a specific category.

E.g. json_object, jsonb, jsonb_object and simple_array should be Array/Object Types and date_point, day_point, time_point should be Date/Time Types.

 Field type (enter ? to see all types) [string]:
 > ?

Main Types
  * string or ascii_string
  * text
  * boolean
  * integer or smallint or bigint
  * float

Relationships/Associations
  * relation a wizard 🧙 will help you build the relation
  * ManyToOne
  * OneToMany
  * ManyToMany
  * OneToOne

Array/Object Types
  * json
  * binary
  * blob

Date/Time Types
  * datetime or datetime_immutable
  * datetimetz or datetimetz_immutable
  * date or date_immutable
  * time or time_immutable
  * dateinterval

Other Types
  * enum
  * decimal
  * number
  * guid
  * json_object
  * jsonb
  * jsonb_object
  * simple_array
  * smallfloat
  * date_point
  * day_point
  * time_point

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions