Releases
v2.0.0
Generated classes include scalar typehints and return type
New options to generate autoincremented IDs, UUIDs, custom IDs or to not generate IDs at all (DTO)
Nullable typehints are generated instead of a default null
value
Add new readable
and writable
options to fields to skip getter or mutator generation.
A fluent interface isn't generated anymore by default unless you set the fluentMutatorMethods
config flag to true
Useless PHPDoc (@param
and @return
annotations when a typehint exist and mutator description) isn't generated anymore
DateTimeInterface
is used instead of DateTime
when possible
Add the ability to not generate accessor methods (useful when generating public properties)
The annotation generator for API Platform v1 has been dropped. Only API Platform v2 is now supported
Parent class is not generated by default anymore (using inheritance for entity is discouraged)
SerializerGroupsAnnotationGenerator
is enabled by default
The property name is pluralized for to-many
relations and singularized for to-one
relations
Adder and remover methods are always singularized to be compatible with the Symfony Property Accessor
If a config file called schema.yaml
is found in the current directory and no 2nd argument is passed to generate-types
, this file will be used
The code has been modernized to use PHP 7 and 7.1's new features (typehints, strict types), PHP 7.1 is now a requirement
PHP CS Fixer has ben upgraded to its version 2
The extract-cardinalities
gains two new options: one to configure the Schema.org's file to use, the other for the GoodRelations one
You can’t perform that action at this time.