Comments (6)
It's not an array because it's undefined unless you set a value in your app.yml
. Ran into the same issue myself. If you don't want to truncate anything you can set an empty array in app.yml
to prevent the error.
DNADesign\Populate\Populate:
truncate_objects: []
from silverstripe-populate.
Is there a way to truncate only the objects created using the module?
No. There's no record or a way of knowing which objects were created by this module and which existed before or after.
from silverstripe-populate.
EG. https://github.com/silverstripe/silverstripe-populate/pull/32/files#diff-93dc79eb6bab3a17b4ea782351fd413f3b01e654949378c6b8dd974acdbc26ecR81 Foreach expects to iterate but doesn't get an iterable. Probably because it was removed here: https://github.com/silverstripe/silverstripe-populate/pull/32/files#diff-93dc79eb6bab3a17b4ea782351fd413f3b01e654949378c6b8dd974acdbc26ecL38.
Not sure what config returns if the config option is never set but It might be the cause.
from silverstripe-populate.
Thanks @davejtoews, should have moved to fix this when I discovered it!
This will make our CI a little cleaner if when we update next :)
from silverstripe-populate.
This should be in the readme.
from silverstripe-populate.
Is there a way to truncate only the objects created using the module?
from silverstripe-populate.
Related Issues (16)
- How can i create a translation? HOT 1
- PopulateMergeMatch with HasOne? HOT 2
- PopulateMergeMatch does not work as expected HOT 3
- Subsites compatibility HOT 2
- Populate $many_many_extraFields HOT 1
- Release/Tag for SS4 HOT 2
- Allow Populate::requireRecords() to run in live mode HOT 2
- Locations of populated images are not recognized by the CMS HOT 9
- Unable to create PDF file HOT 1
- Images cause error when repeatedly running populate task.
- MNT: Move to Github Actions dynamic matrix HOT 1
- Feature Request: truncate_objects should also delete Fluent's Localised table
- Add a note that 3.1.3 is required HOT 1
- increas Maximum execution time
- How to add many_many relation? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-populate.