Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write an AppFixtures.php to populate Riprap with a large quanity of sample data #27

Open
mjordan opened this issue Jan 2, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@mjordan
Copy link
Owner

mjordan commented Jan 2, 2019

It would be useful to be able to load large quantities of test data, e.g. for testing https://github.com/mjordan/preservation_reports.

A custom AppFixtures.php file would let us run php bin/console -n doctrine:fixtures:load easily to do this.

mjordan added a commit that referenced this issue Jan 3, 2019
mjordan added a commit that referenced this issue Jan 3, 2019
@mjordan
Copy link
Owner Author

mjordan commented Jan 25, 2019

This gist is a fixtures generator that will load 1000 events for a single resource, injecting random days and months in the timestamp property. Modify to suit your needs.

https://gist.github.com/mjordan/cd73d31bebb2d3db9271c4e5a5e63abc

@mjordan mjordan added the enhancement New feature or request label Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant