Skip to content
Extraits de code Groupes Projets
CounterpartSeeder.php 1,03 ko
Newer Older
<?php

use Phinx\Seed\AbstractSeed;

class CounterpartSeeder extends AbstractSeed
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = array(
            array(
                'id' => 1,
                'datec' => '2016-06-22 12:34',
                'user_id' => 1,
                'quoi' => 'pishirt', // [piplome|pibag|pishirt|hoodie]
                'taille' => 8,
                'status' => 1,
                'adresse_id' => 1,
            ),
            array(
                'id' => 2,
                'datec' => '2016-06-22 12:34',
                'user_id' => 2,
                'quoi' => 'piplome', // [piplome|pibag|pishirt|hoodie]
                'taille' => 2,
                'adresse_id' => null,
            ),
        );

        $this->table('contreparties')->insert($data)->save();
    }
}