File tree Expand file tree Collapse file tree
user_guide_src/source/dbmgmt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ stored within the **app/Database/Seeds** directory. The name of the file must ma
1414
1515.. literalinclude :: seeds/001.php
1616
17+ ***************
1718Nesting Seeders
18- ===============
19+ ***************
1920
2021Seeders can call other seeders, with the **call() ** method. This allows you to easily organize a central seeder,
2122but organize the tasks into separate seeder files:
@@ -27,23 +28,25 @@ anywhere the autoloader can find them. This is great for more modular code bases
2728
2829.. literalinclude :: seeds/003.php
2930
31+ *************
3032Using Seeders
31- =============
33+ *************
3234
3335You can grab a copy of the main seeder through the database config class:
3436
3537.. literalinclude :: seeds/004.php
3638
3739Command Line Seeding
38- --------------------
40+ ====================
3941
4042You can also seed data from the command line, as part of the Migrations CLI tools, if you don't want to create
4143a dedicated controller::
4244
4345 > php spark db:seed TestSeeder
4446
45- Creating Seed Files
46- -------------------
47+ *********************
48+ Creating Seeder Files
49+ *********************
4750
4851Using the command line, you can easily generate seed files.
4952
You can’t perform that action at this time.
0 commit comments