You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support mapping of entry data to database columns (#273)
* Add upgrade note to readme
* Missing update script
* Correct file path to migration
* Lets not exclude parent
* Split forms and form submissions, provide Eloquent Submission Repository and Query Builder (#177)
* Add upgrade note to readme
* Begin split configs
* Use form handle to relate, rather then a database id
* Defer to core methods for retrieving submissions
* Update fresh migrations and add migration for existing installs
* Eloquent FormRepository
* Fix migration
* Dont force a model type or it can't be overwritten
* Missing update script
* Correct file path to migration
* Lets not exclude parent
* StyleCI
* Actually run update script
* Prep for Statamic 5
* Update dev dependencies
* Try again
* Meh
* Remove deprecated test functions
* static
* Migrate PHP unit config
* Fix migration
* Fix tests to use handle instead of id
* Bug fixes
* Fix form listing bugs
* Split migration publish tags (#266)
* Split migration tags
* fix everything
* Merge branch '5.x-support' into split-migration-tags
* Ignore `.phpunit.cache`
---------
Co-authored-by: Ryan Mitchell <[email protected]>
* Statamic 5: Simplify `TestCase` (#267)
* Simplify `TestCase`
* Remove `partialMock` method from `TestCase`
I'm not sure which "earlier versions of Laravel" this is referring to but the test suite seems to pass without it so I presume it's no longer needed.
* doesn't look like we're using this method either
* The `ConsoleKernel` isn't needed
* Make drivers opt-in, rather than opt-out (#268)
* Eloquent driver should be opt-in, not opt-out
* Swap all drivers to `eloquent` in our `TestCase`
* Drop status on entries (#228)
* Fix asset import bug
* Drop status on entries
* Revert "Fix asset import bug"
This reverts commit 35ebe65.
* Fix test
* StyleCI
* Revert
* Proper update script
* Make status nullable in down migration
* Statamic 5: Docs Refresh (#254)
* Initial docs refresh
* Fix tpyo
* Missing space
---------
Co-authored-by: Ryan Mitchell <[email protected]>
* Support mapped data columns
* Add tests and fix test errors by freezing time
* Update `AddonTestCase` import
* Fix failing tests in `EntryQueryBuilderTest` (#275)
* Fix failing tests in `EntryQueryBuilderTest`
* dont need to freeze time for this test
* 🍺
* 🍺
* Remove accidental testcase addition
* Avoid make()-ing
* Refactor out hooks
* Add test coverage after bringin data into COLUMNS
* Not array_keys
* Add assertion that it doesnt save the field to the data column
* 🍺
* Remove `@test` in favour of #[Test]
* Remove ::hook calls
* 🍺
---------
Co-authored-by: Duncan McClean <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,10 @@ The configuration file, found in `config/statamic/eloquent-driver.php` is automa
52
52
53
53
For each of the repositories, it allows you to determine if they should be driven by flat-files (`file`) or Eloquent (`eloquent`). Some repositories also have additional options, like the ability to override the model used.
54
54
55
+
### Mapping Entry data
56
+
57
+
If you want to map fields from your blueprints to columns with the same handle in your blueprint, set `entries.map_data_to_columns` to true. When adding new columns in a migration we recommend resaving all Entries so that column data is filled: `Entry::all()->each->save()`.
58
+
55
59
## Upgrading
56
60
57
61
After updating to a new version of the Eloquent Driver, please ensure you run `php artisan migrate` to update your database to the latest schema.
0 commit comments