Releases: thecodingmachine/tdbm
Releases · thecodingmachine/tdbm
v5.1.4
v5.1.3
v5.1.2
v5.1.1
v5.1.0
Major features:
- Support for new annotations:
@ProtectedGetter
,@ProtectedSetter
and@ProtectedOneToMany
can hide generated getters and setters (to avoid the anemic data model) #125- Generated code can now implement any interface or use any trait thanks to
@AddInterface
,@AddInterfaceOnDao
,@AddTrait
and@AddTraitOnDao
#126 - Support for PHP annotations for JSON serialization #132 (Thanks to @brain-diminished)
- Support for
@Bean
annotation to customize the name of a bean/DAO
- Generation of DAOs and Beans is not performed using zend-code. A number of hooks have been added. Third party packages can now alter code generation on the fly. #157 @moufmouf
Note: a PR is pending in DBAL to make the reading of annotations at table level possible in any DBMS. Currently, only MySQL is supported.
Improvements:
- Added autopivot support (when a pivot table points twice on the same target table) #131 #146 @Kharhamel
- Improved OneToOne inverse relationship code generation (when a unique index is also a foreign key) #150 #151 #154 @homersimpsons
getById
is now also generated for composite primary keys #100 #153 @homersimpsons- Made base DAOs and beans abstract #138 @moufmouf
- Add the possibility to give a null parameter if the column of type "resource" is nullable #137 @TheoBiron
- Improvement in code generation: made the code "stable" from one generation to another #149 @homersimpsons
- Improved JSON serialization: when
$stopRecursion
equals true, the key of the foreign objects are included by default #152 #155 @homersimpsons
Performance improvements:
- Improved DAOFactory performance by lazy loading services #58 #147 @Kharhamel
- Adding cache for results of FindObjectsQueryFactory::compute #133 @moufmouf
- InnerResultIterator: Improve count() performance of non-executed query #156 @homersimpsons
DBMS support:
Fixed Bugs:
- Fixed DaoFactory usage in Symfony #115
- Fixed cannot find objects on unique index with nullable column #106
- Fixed primary key lazy loading #143 @homersimpsons
- Fixed SQL "IN" filtering #135 @TheoBiron
- Fixed an issue with required parameters in findOneBy #139 #148 @Kharhamel