Entity
Will add a new Entity file with getters and setters for specified properties.
Example
tramway create:entity Product --properties width height price
Options
Argument | Command Type | Type | Default | Required | Comments |
---|---|---|---|---|---|
name | argument | string | none | yes | The name of the Entity class |
dir | option | string | entities | no | An option to override the default folder the Entity class will be created in |
properties | option | array | none | no | An array of properties the Entity will have |
version | option | number | latest | no | An option to specify which version of the class to use |