src/Phinx/Migration/Manager/Environment.php
public function executeSeed(SeedInterface $seed)
    {
        $seed->setAdapter($this->getAdapter());

        // begin the transaction if the adapter supports it
        if ($this->getAdapter()->hasTransactions()) {
            $this->getAdapter()->beginTransaction();
        }

        // Run the seeder
        if (method_exists($seed, SeedInterface::RUN)) {
            $seed->run();
        }

        // commit the transaction if the adapter supports it
        if ($this->getAdapter()->hasTransactions()) {
            $this->getAdapter()->commitTransaction();
        }
    }
public function executeSeed(SeedInterface $seed)
    {
        $seed->setAdapter($this->getAdapter());

        // begin the transaction if the adapter supports it
        if ($this->getAdapter()->hasTransactions()) {
            $this->getAdapter()->beginTransaction();
        }

        // Run the seeder
        if (method_exists($seed, SeedInterface::RUN)) {
            $seed->run();
        }

        // commit the transaction if the adapter supports it
        if ($this->getAdapter()->hasTransactions()) {
            $this->getAdapter()->commitTransaction();
        }
    }
public function executeSeed ( SeedInterface $ seed ) { $ seed -> setAdapter ( $ this -> getAdapter ( ) ) ; // begin the transaction if the adapter supports it if ( $ this -> getAdapter ( ) -> hasTransactions ( ) ) { $ this -> getAdapter ( ) -> beginTransaction ( ) ; } // Run the seeder if ( method_exists ( $ seed , SeedInterface :: RUN ) ) { $ seed -> run ( ) ; } // commit the transaction if the adapter supports it if ( $ this -> getAdapter ( ) -> hasTransactions ( ) ) { $ this -> getAdapter ( ) -> commitTransaction ( ) ; } }
Executes the specified seeder on this environment.

@param \Phinx\Seed\SeedInterface $seed
@return void
Executes the specified seeder on this environment .