src/ActiveDoctrine/Fixture/FixtureLoader.php
/**
     * Run all fixtures.
     *
     * @param Connection $connection
     * @param bool       $append     Don't empty tables before loading
     */
Run all fixtures.
@param Connection $connection
@param bool       $append     Don't empty tables before loading
Run all fixtures . @param Connection $connection @param bool $append Don ' t empty tables before loading
public function run(Connection $connection, $append = false)
    {
        if (!$append) {
            foreach (array_unique($this->dropTables) as $table) {
                $connection->delete($table, [1 => 1], [\PDO::PARAM_INT]);
            }
        }
        foreach ($this->getSortedFixtures() as $fixture) {
            $this->runFixture($connection, $fixture);
        }
    }
public function run ( Connection $ connection , $ append = false ) { if ( ! $ append ) { foreach ( array_unique ( $ this -> dropTables ) as $ table ) { $ connection -> delete ( $ table , [ 1 => 1 ] , [ \ PDO :: PARAM_INT ] ) ; } } foreach ( $ this -> getSortedFixtures ( ) as $ fixture ) { $ this -> runFixture ( $ connection , $ fixture ) ; } }
Run all fixtures.
Run all fixtures .
//in the future, resolve key constraints here