Releases: hostnet/accessor-generator-plugin-lib
Releases · hostnet/accessor-generator-plugin-lib
Twig update to prevent sandbox issue
Removed true/false options + codestyle
This release contains the following changes:
- Major: True/false options are no longer supported
- Fully-qualified functions are now used
- Typehints were added to the project code
- Some cleanup has been done to the code itself
Support for `zeroeddate`
- Add support for
zeroeddate
(if you define such a type for MySQL compatibility) - Treat
zeroedate
asnullable
Getter return typehints
Added return typehints to getters.
This is backwards incompatible in the following cases:
- if you have interfaces implemented by generated getters
- if you have
null
values in non-nullable columns - if you mock these classes for unit tests without returning the proper return type for the getters. (By default Prophecy and PHPUnit mock objects return
null
for method calls)
Added json type support.
2.9.0 Added json type support.
Fixed a crash when referencing non-required dependencies
Fixed an issue where the generator may crash if used in coherence with entity-plugin-lib
with references to classes from suggested (non-required) dependencies.
See #26.
Fixed duplicate enum-getter generation.
Fixed an issue where in some cases duplicate getters were generated for enum classes.
Fixed a typehint for generated Enum-classes.
A collection in an entity is typically instantiated using ArrayCollection
. However, when an existing entity is pulled from a repository, Doctrine instantiates one as a PersistentCollection
. This version fixes the type hint in the constructor for generated Enum classes by using the Collection
interface instead.
Resolved issue with duplicate `use`-statements
Merge pull request #23 from hipio/master FIX: Duplicate import statements
Fixed passing collection to generated enum classes from traits
Merge pull request #22 from haroldiedema/master Fixed passing collection for enum generation through traits