SequenceGeneratorTest.php 496 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

namespace Doctrine\Tests\ORM\Functional;

require_once __DIR__ . '/../../TestInit.php';

/**
 * Description of SequenceGeneratorTest
 *
 * @author robo
 */
class SequenceGeneratorTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
    public function testFoo()
    {
        $this->assertEquals(1, 1);
    }
}

/**
21
 * @Entity
22 23 24
 */
class SeqUser {
    /**
25 26
     * @Id
     * @IdGenerator("sequence")
27 28 29 30 31 32 33 34
     */
    private $id;

    public function getId() {
        return $this->id;
    }
}