Skip to content

Releases: api-platform/schema-generator

Version 2.2.0

11 Nov 21:51
v2.2.0
f3caf7c
Compare
Choose a tag to compare
  • Symfony 5 compatibility
  • Add support for custom Twig templates
  • Add support for operations in API Platform annotations
  • Add support for custom columnPrefix
  • Use superseding props over which they superseded
  • Fix implicit and explicit property inheritance
  • Use nullable property for custom fields
  • Add inversedBy and mappedBy Doctrine attributes
  • Fix annotation generation

Version 2.1.0

16 Feb 16:23
v2.1.0
849d34c
Compare
Choose a tag to compare
  • Allow to use a PSR-4 namespace's prefix
  • Autodetect Flex-like directory structure
  • Improve the message when using 1st type in range

Version 2.1.0 beta 1

23 Jan 13:43
v2.1.0-beta.1
849d34c
Compare
Choose a tag to compare
Version 2.1.0 beta 1 Pre-release
Pre-release
  • Allow to use a PSR-4 namespace's prefix
  • Autodetect Flex-like directory structure
  • Improve the message when using 1st type in range

Version 2.0.2

23 Oct 20:29
v2.0.2
e997d84
Compare
Choose a tag to compare
  • Use PHPScoper build the PHAR (to prevent conflicts with libraries installed in the project)
  • Add E2E tests

Version 2.0.1

16 Sep 19:40
v2.0.1
e648ae3
Compare
Choose a tag to compare
  • The generator now relies on embeded schema file to prevent issues with online XML files and allow offline usage
  • An issue regarding the Inflector namespace has been fixed

Version 2.0.0

08 Sep 08:36
v2.0.0
286e67b
Compare
Choose a tag to compare
  • 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

v1.2.0

24 Nov 13:52
v1.2.0
Compare
Choose a tag to compare
Version 1.2.0

v1.1.2

27 Sep 19:24
v1.1.2
85bd370
Compare
Choose a tag to compare
Version 1.1.2

v1.1.1

07 Jul 15:35
v1.1.1
Compare
Choose a tag to compare
Version 1.1.1

v1.1.0

16 May 08:57
v1.1.0
Compare
Choose a tag to compare
Version 1.1.0