Factory
Will add a new Factory file with a placeholder for building the entity.
Example
tramway create:factory ProductFactory --add-dependency-injection --key factory.product
Options
Argument | Command Type | Type | Default | Required | Comments |
---|---|---|---|---|---|
name | argument | string | none | yes | The name of the Factory class |
dir | option | string | entities | no | An option to override the default folder the Factory class will be created in |
version | option | number | latest | no | An option to specify which version of the class to use |