Comments (2)
@EvgeniyRRU , one thing that comes to my mind is that you can reorder the tables so that you don't have a foreign keys issue upon table creating. Can that help?
Currently the seeder doesn't support such a complex cases - with foreign keys defined.
Well, you can always make a PR :)
from db-seeder.
@EvgeniyRRU @tebazil I have written detailed tutorial on this http://www.smarttutorials.net/seedpopulate-mysql-database-dummytest-data-using-php-db-seeder/
. Please check it may help you.
You need to temporarily disable foreign key check and enable it back.
from db-seeder.
Related Issues (13)
- Object of class DateTime could not be converted to string HOT 6
- Can i seed the same table multiple times? HOT 2
- Is primary key hard-coded to "id"? HOT 3
- Missing feature to take all elements from a bag, not any one element twice HOT 1
- Missing support for valid() HOT 3
- Don't insert into table HOT 3
- Junction Table relation HOT 1
- db-seeder stops working after a certain number of columns HOT 1
- Something went wrong... PHP Fatal error: Uncaught Error: Class 'tebazil\dbseeder\Seeder' not found in /home/work HOT 2
- Inserting Same Rows or Add providers in Faker Wrapper HOT 2
- Table data for table (table) column id is not found in class instance HOT 1
- Insert new record into existing table HOT 2
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 db-seeder.