Skip to content

2.0.0-beta.3

Pre-release
Pre-release

Choose a tag to compare

@dereuromark dereuromark released this 09 May 16:34
· 46 commits to main since this release

This third beta is based on the current main branch and supersedes 2.0.0-beta.2.

For the full v2 API and migration surface, see the earlier prerelease notes:

Since beta.2

Fixes

  • DummyGenerator optional() float weights: float probabilities are forwarded directly to the boolean backend instead of being skewed by the adapter layer.
  • Ambiguous association errors: conflict messages are now more explicit and paste-ready, so it is clearer when a relation needs an explicit directional helper or with() path.

Improvements

  • Generator auto-detection: the plugin can auto-detect the default random data generator more cleanly, reducing setup friction.
  • enumElement() alias removed on both backends: callers should use enumCase() (returns the case) or enumValue() (returns the backed-enum scalar). The Rector ruleset does not auto-rewrite this rename, so it is a manual one-line change per call site.
  • Method-style generator access Rector rule: a new bundled rule rewrites Faker-style property access to method calls, e.g. $generator->name to $generator->name(). Covers the optional() and unique() chains and $this->getGenerator()->prop usages on BaseFactory subclasses.

Docs site

The published docs now support both release lines side by side:

  • https://dereuromark.github.io/cakephp-fixture-factories/ -> latest v2 docs
  • https://dereuromark.github.io/cakephp-fixture-factories/1.x/ -> legacy 1.x docs

Upgrade note

If you are still on the 1.x line and need the 1.3 to 1.4 migration notes, they remain available in the legacy docs under /1.x/guide/upgrading.html.

Full Changelog: 2.0.0-beta.2...2.0.0-beta.3