2.0.0-beta.3
Pre-release
Pre-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 useenumCase()(returns the case) orenumValue()(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->nameto$generator->name(). Covers theoptional()andunique()chains and$this->getGenerator()->propusages onBaseFactorysubclasses.
Docs site
The published docs now support both release lines side by side:
https://dereuromark.github.io/cakephp-fixture-factories/-> latest v2 docshttps://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