Skip to content

Releases: cakephp/bake

Bake 2.9.3

31 Mar 02:55
Compare
Choose a tag to compare

What's Changed

  • Add allow-alias-relations option to bake model command by @passchn in #913

New Contributors

Full Changelog: 2.8.3...2.9.3

2.8.3

10 Mar 19:41
4e1ac8f
Compare
Choose a tag to compare

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

Full Changelog: 2.8.2...2.8.3

2.8.2

05 Oct 18:46
ef02149
Compare
Choose a tag to compare

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

26 Sep 06:59
7f7dac1
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.8.0...2.8.1

CakePHP Bake 2.8.0

24 Sep 04:03
fc7440b
Compare
Choose a tag to compare

Changes

  • Support for keeping app-specific functions, properties and constants in model file with the new --update option for bake 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 or BakeCommand::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 to CommonOptionsTrait set by the --force option
  • Make bake template file extension configurable
  • Update plugin class generation

CakePHP Bake 2.8.0 RC1

18 Sep 05:53
5f35ac8
Compare
Choose a tag to compare
Pre-release

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

18 Sep 05:45
da7aaf3
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.7.1...2.7.2

Bake 2.7.1

27 Jul 00:58
808608b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.7.0...2.7.1

Bake 2.7.0

15 Apr 02:04
3933caa
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.6.1...2.7.0

Bake 2.6.1

01 Nov 05:10
e559b5f
Compare
Choose a tag to compare

Changes

  • Fixed baking columns that start with an underscore _.