TramwayJS

Entity

Will add a new Entity file with getters and setters for specified properties.

Example

tramway create:entity Product --properties width height price

Options

ArgumentCommand TypeTypeDefaultRequiredComments
nameargumentstringnoneyesThe name of the Entity class
diroptionstringentitiesnoAn option to override the default folder the Entity class will be created in
propertiesoptionarraynonenoAn array of properties the Entity will have
versionoptionnumberlatestnoAn option to specify which version of the class to use