Releases: cakephp/bake
Bake 3.0.1
- Update to stable dependencies.
Full Changelog: 3.0.0...3.0.1
Bake 3.0.0
First version compatible with CakePHP 5.0
What's Changed
- Update for Cake 5. by @ADmad in #836
- update generated classes due to changes in milligram 1.4.1 by @LordSimal in #874
- 3.x: change baked index method to use query instance instead of table by @LordSimal in #878
- Cleanup of signature docs by @dereuromark in #902
- Fixes application Bake templates path in Document by @nojimage in #915
- 3.x: remove deprecated BakeHelper::stringifyList method by @LordSimal in #920
- Revert template override path change. by @ndm2 in #923
- 3.x: fix DocBlockHelper mapping by @LordSimal in #929
- 3.x: remove composer.json adjustments while baking a plugin by @LordSimal in #933
- 3.x: use
hasValue()
instead ofhas()
by @LordSimal in #934
Full Changelog: 2.9.3...3.0.0
Bake 2.9.3
2.8.3
What's Changed
- Fix stan errors - by @ADmad in #901
- Fix error when trying to bake with non-existent plugins directory - by @ADmad in #911
New Contributors
- @angelxmoreno made their first contribution in #876
Full Changelog: 2.8.2...2.8.3
2.8.2
What's Changed
- Update regex for finding bake template files. by @ADmad in #871
- Add support for keeping custom class implements with --update by @othercorey in #873
Full Changelog: 2.8.1...2.8.2
CakePHP Bake 2.8.1
CakePHP Bake 2.8.0
Changes
- Support for keeping app-specific functions, properties and constants in model file with the new
--update
option forbake model
- All generated code will still be overwritten
- Support for customizing file headers with the new
Bake.file_header
element - Detecting and generating
HasOne
associations - Customizing template renderer View options using the new
Bake.renderer
event orBakeCommand::createTemplateRenderer()
- Don't enforce FKs presence on create to allow e.g. hasMany association save calls to run through
- Skip prompting the user to overwrite a file if it hasn't changed
- Adding
$force
property toCommonOptionsTrait
set by the--force
option - Make
bake template
file extension configurable - Update plugin class generation
CakePHP Bake 2.8.0 RC1
What's Changed
Non-destructive baking for Entity and Table
The model command now supports a new --update
option which tries to update only the generated code in entity and tables files.
Updating will keep any user-specific class member functions, properties and constants while updating all generated code. However, any user-specific code within generated functions, functions and constants will be over-written.
Generating HasOne associations
HasOne associations are now detected and generated in table classes.
File header customization
The header for every generated file can now be customized by overriding the Bake.file_header
template.
Template renderer customization
All bake commands now use BakeCommand::createTemplateRenderer()
to create renderer instances. This can be overridden to customize the renderer.
If you only need to add ViewBuilder options such as custom helpers, you can handle the new Bake.renderer
event which passes the renderer instances.
Other Changes
- Update plugin class generation. by @ADmad in #814
- Don't enforce FKs presence on create to allow e.g. hasMany association save calls to run through by @LordSimal in #841
- Make bake template extension configurable by @othercorey in #861
- Add $force to CommonOptionsTrait by @othercorey in #863
- Skip prompting the user if entity or table file is unchanged by @othercorey in #860
Full Changelog: 2.7.2...2.8.0-RC1
CakePHP Bake 2.7.2
What's Changed
- Use generic syntax by @dereuromark in #846
- Fix wrong connection used when detecting belongsTo associations by @othercorey in #866
Full Changelog: 2.7.1...2.7.2
Bake 2.7.1
What's Changed
- Fix class not found in plugin test by @nishimura-d in #823
- Update GitHub actions by @dependabot in #824, #825 and #826
- Update phpstan and psalm by @LordSimal in #829
- Remove invalid @param by @othercorey in #832
- Avoid generating association if table object or database table exist by @ajibarra in #842
New Contributors
- @nishimura-d made their first contribution in #823
- @dependabot made their first contribution in #824
- @ajibarra made their first contribution in #842
Full Changelog: 2.7.0...2.7.1