Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2690

Doctrine ORM test suite failing on PostgresSQL

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      Windows 7 Professional 64 bits
      PHP 5.4.11 (cli) (built: Jan 16 2013 20:26:26)
      Doctrine dev-master from 18-9-2013
      PostgreSQL 9.2.4 build 1600, 64-bits
      Commit for doctrine/common d9dea98243c733ff589aab10e321de4f14a63ab4

      Description

      This issue is related to: http://www.doctrine-project.org/jira/browse/DDC-2689

      PHPUnit 3.7.27 by Sebastian Bergmann.
      
      Configuration read from C:\inetpub\symfony23\vendor\doctrine\orm\postgres.phpunit.xml
      
      ......................SSSSSS.................................   61 / 2074 (  2%)
      .............................................................  122 / 2074 (  5%)
      .....................................................S.......  183 / 2074 (  8%)
      .............................................................  244 / 2074 ( 11%)
      .............................................................  305 / 2074 ( 14%)
      .............................................................  366 / 2074 ( 17%)
      .............................................................  427 / 2074 ( 20%)
      .............................................E...............  488 / 2074 ( 23%)
      .............................................................  549 / 2074 ( 26%)
      .............................................................  610 / 2074 ( 29%)
      ..SSSS..................................................S....  671 / 2074 ( 32%)
      .............................................................  732 / 2074 ( 35%)
      ...........................S................................S  793 / 2074 ( 38%)
      .............................................................  854 / 2074 ( 41%)
      .....S..SS.................................S.................  915 / 2074 ( 44%)
      .............................................................  976 / 2074 ( 47%)
      ............................................................. 1037 / 2074 ( 50%)
      ............................................................. 1098 / 2074 ( 52%)
      ............................................................. 1159 / 2074 ( 55%)
      .................................................S........... 1220 / 2074 ( 58%)
      ..................................S.......................... 1281 / 2074 ( 61%)
      ............................................................. 1342 / 2074 ( 64%)
      ............................................................. 1403 / 2074 ( 67%)
      ............................................................. 1464 / 2074 ( 70%)
      ............................................................. 1525 / 2074 ( 73%)
      ............................................................. 1586 / 2074 ( 76%)
      ............................................................. 1647 / 2074 ( 79%)
      ............................................................. 1708 / 2074 ( 82%)
      ............................................................. 1769 / 2074 ( 85%)
      ............................................................. 1830 / 2074 ( 88%)
      ............................................................. 1891 / 2074 ( 91%)
      ...................................................S......... 1952 / 2074 ( 94%)
      ....S...............................S........................ 2013 / 2074 ( 97%)
      ..................................
      
      Time: 42.33 seconds, Memory: 83.50Mb
      
      There was 1 error:
      
      1) Doctrine\Tests\ORM\Functional\ProxiesLikeEntitiesTest::testPersistUpdate
      Exception: [Doctrine\Common\Proxy\Exception\OutOfBoundsException] Missing value for primary key id on Doctrine\Tests\Models\CMS\CmsUser
      
      With queries:
      7. SQL: '"COMMIT"' Params: 
      6. SQL: 'INSERT INTO cms_users (id, status, username, name, email_id) VALUES (?, ?, ?, ?, ?)' Params: '385', '', 'ocramius', 'Marco', ''
      5. SQL: '"START TRANSACTION"' Params: 
      4. SQL: 'SELECT NEXTVAL('cms_users_id_seq')' Params: 
      3. SQL: 'CREATE TABLE cms_users (id INT NOT NULL, email_id INT DEFAULT NULL, status VARCHAR(50) DEFAULT NULL, username VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id))' Params: 
      2. SQL: 'SHOW search_path' Params: 
      
      Trace:
      C:\inetpub\symfony23\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php:125
      C:\inetpub\symfony23\vendor\doctrine\orm\tests\Doctrine\Tests\ORM\Functional\ProxiesLikeEntitiesTest.php:51
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestCase.php:983
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestCase.php:838
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestResult.php:648
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestCase.php:783
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestSuite.php:775
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestSuite.php:745
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\Framework\TestSuite.php:705
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\TextUI\TestRunner.php:349
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php:176
      C:\inetpub\symfony23\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php:129
      C:\inetpub\symfony23\vendor\phpunit\phpunit\phpunit.php:46
      
      
      C:\inetpub\symfony23\vendor\doctrine\orm\tests\Doctrine\Tests\OrmFunctionalTestCase.php:477
      C:\inetpub\symfony23\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php:125
      C:\inetpub\symfony23\vendor\doctrine\orm\tests\Doctrine\Tests\ORM\Functional\ProxiesLikeEntitiesTest.php:51
      
      Caused by
      Doctrine\Common\Proxy\Exception\OutOfBoundsException: Missing value for primary key id on Doctrine\Tests\Models\CMS\CmsUser
      
      C:\inetpub\symfony23\vendor\doctrine\common\lib\Doctrine\Common\Proxy\Exception\OutOfBoundsException.php:41
      C:\inetpub\symfony23\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php:125
      C:\inetpub\symfony23\vendor\doctrine\orm\tests\Doctrine\Tests\ORM\Functional\ProxiesLikeEntitiesTest.php:51
      
      FAILURES!
      Tests: 2047, Assertions: 7055, Errors: 1, Skipped: 23.
      
      

        Activity

        Hide
        Flip added a comment -

        How can this possibly pass on the travis-ci builds ?? Maybe this is an indication that something is wrong with the travis setup.

        This is the setup/input: https://github.com/doctrine/doctrine2/blob/master/tests/Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php#L51

        This is where execution fails: https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php#L125

        Show
        Flip added a comment - How can this possibly pass on the travis-ci builds ?? Maybe this is an indication that something is wrong with the travis setup. This is the setup/input: https://github.com/doctrine/doctrine2/blob/master/tests/Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php#L51 This is where execution fails: https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php#L125
        Hide
        Flip added a comment -
        Show
        Flip added a comment - This is a related PR https://github.com/doctrine/common/pull/298

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Flip
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: