DNADesign\Populate\Populate
Synopsis
class Populate
{
- // members
- private static array $include_yaml_fixtures = ;
- private static array $truncate_classes = ;
- private static array $truncate_tables = ;
- private static bool $ran = false;
- private static array $clearedTables = ;
- // methods
- public static bool requireRecords()
- private static void truncateObject()
- private static void truncateTable()
- private static void canBuildOnEnvironment()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Extensible
Members
private
- $clearedTables — array
- $include_yaml_fixtures — array
- $ran
—
DNADesign\Populate\bool
Flag to determine if we're already run for this session (i.e to prevent parent calls invoking {@link requireRecords} twice). - $truncate_classes — array
- $truncate_tables — array
Methods
private
- canBuildOnEnvironment()
- truncateObject() — Delete all the associated tables for a class
- truncateTable() — Attempts to truncate a table. Outputs messages to indicate if table has already been truncated or cannot be truncated