Skip to content

Releases: loadsys/CakePHP-Basic-Seed

2.1.1

26 Oct 17:15
Compare
Choose a tag to compare

This release fixes an issue with importing seed records that have pre-defined primary keys (id typically) for the purposes of being able to associate seed data between tables as well as "reset" existing records using ID matching just by re-running a seed.

This change makes all Entity fields _accessible by default. This could theoretically have an impact on seed imports if you happened to have defined fields in your seed data that you didn't actually want to import into the database, but that seems unlikely.

2.1.0

14 Oct 18:45
Compare
Choose a tag to compare

Significantly improves the processing for importing records. Existing DB records are now matched by primary key (if present) and updated in place where possible. Saves are skipped when there is no difference between the seed data and the existing DB record.

Additionally, both Table::newEntity()/::patchEntity() and Table::save() options are now supported in importTables() via the _entityOptions and _saveOptions keys.

⚠️ The existing _options key has been deprecated and will be removed in a future release.

2.0.1

13 Oct 13:39
Compare
Choose a tag to compare

Hardens the code that emits new seed files against variable interpolation. (Via #11).

2.0.0

11 Oct 15:47
Compare
Choose a tag to compare

First Cake 3 compatible release!

There's still lots of rough edges to work on, and filling in the missing test suite is still a priority.

Better error feedback from `firstOrCreate()`

07 Apr 19:40
Compare
Choose a tag to compare

The method will now report validation errors if any are found after a failed save().