Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2689

Doctrine ORM test suite failing on MySQL

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.5
    • 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
      mysql-5.6.13-winx64
      Commit for doctrine/common d9dea98243c733ff589aab10e321de4f14a63ab4

      Description

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

      PHPUnit 3.7.27 by Sebastian Bergmann.
      
      Configuration read from C:\inetpub\symfony23\vendor\doctrine\orm\mysql.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%)
      ............................................SE...............  488 / 2074 ( 23%)
      .............................................................  549 / 2074 ( 26%)
      .............................................................  610 / 2074 ( 29%)
      ......SSSSSS.............S..............................S...S  671 / 2074 ( 32%)
      ...........S..............................S................E.  732 / 2074 ( 35%)
      ...........................S.................................  793 / 2074 ( 38%)
      .............................................................  854 / 2074 ( 41%)
      .....S..SS...................................................  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: 39.42 seconds, Memory: 79.50Mb
      
      There were 2 errors:
      
      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:
      5. SQL: '"COMMIT"' Params: 
      4. SQL: 'INSERT INTO cms_users (status, username, name, email_id) VALUES (?, ?, ?, ?)' Params: '', 'ocramius', 'Marco', ''
      3. SQL: '"START TRANSACTION"' Params: 
      2. SQL: 'CREATE TABLE cms_users (id INT AUTO_INCREMENT NOT NULL, email_id INT DEFAULT NULL, status VARCHAR(50) DEFAULT NULL, username VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_3AF03EC5F85E0677 (username), UNIQUE INDEX UNIQ_3AF03EC5A832C1C9 (email_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB' 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
      
      2) Doctrine\Tests\ORM\Functional\Ticket\DDC1514Test::testIssue
      Exception: [PHPUnit_Framework_Error_Notice] Trying to get property of non-object
      
      With queries:
      14. SQL: '"COMMIT"' Params: 
      13. SQL: 'INSERT INTO DDC1514EntityB (entityAFrom_id, entityATo_id) VALUES (?, ?)' Params: '2', '1'
      12. SQL: 'INSERT INTO DDC1514EntityB (entityAFrom_id, entityATo_id) VALUES (?, ?)' Params: '1', '2'
      11. SQL: 'INSERT INTO DDC1514EntityA (title, entityC_id) VALUES (?, ?)' Params: 'bar', '1'
      10. SQL: 'INSERT INTO DDC1514EntityA (title, entityC_id) VALUES (?, ?)' Params: 'foo', ''
      9. SQL: 'INSERT INTO DDC1514EntityC (title) VALUES (?)' Params: 'baz'
      8. SQL: '"START TRANSACTION"' Params: 
      7. SQL: 'ALTER TABLE DDC1514EntityB ADD CONSTRAINT FK_B7F2235B64DC3373 FOREIGN KEY (entityATo_id) REFERENCES DDC1514EntityA (id)' Params: 
      6. SQL: 'ALTER TABLE DDC1514EntityB ADD CONSTRAINT FK_B7F2235B4D8FF1AD FOREIGN KEY (entityAFrom_id) REFERENCES DDC1514EntityA (id)' Params: 
      5. SQL: 'ALTER TABLE DDC1514EntityA ADD CONSTRAINT FK_2EFB72E12014DB0 FOREIGN KEY (entityC_id) REFERENCES DDC1514EntityC (id)' Params: 
      4. SQL: 'CREATE TABLE DDC1514EntityC (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB' Params: 
      3. SQL: 'CREATE TABLE DDC1514EntityB (id INT AUTO_INCREMENT NOT NULL, entityAFrom_id INT DEFAULT NULL, entityATo_id INT DEFAULT NULL, INDEX IDX_B7F2235B4D8FF1AD (entityAFrom_id), INDEX IDX_B7F2235B64DC3373 (entityATo_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB' Params: 
      2. SQL: 'CREATE TABLE DDC1514EntityA (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, entityC_id INT DEFAULT NULL, INDEX IDX_2EFB72E12014DB0 (entityC_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB' Params: 
      
      Trace:
      C:\inetpub\symfony23\vendor\doctrine\orm\tests\Doctrine\Tests\ORM\Functional\Ticket\DDC1514Test.php:60
      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\orm\tests\Doctrine\Tests\ORM\Functional\Ticket\DDC1514Test.php:60
      
      Caused by
      Trying to get property of non-object
      
      C:\inetpub\symfony23\vendor\doctrine\orm\tests\Doctrine\Tests\ORM\Functional\Ticket\DDC1514Test.php:60
      
      FAILURES!
      Tests: 2047, Assertions: 7035, Errors: 2, Skipped: 28.
      
      

        Issue Links

          Activity

          Hide
          Flip added a comment -
          Show
          Flip added a comment - First error is the same as this one: http://www.doctrine-project.org/jira/browse/DDC-2690#comment-21186 Second error has a bugfix here: https://github.com/doctrine/doctrine2/pull/805
          Hide
          Marco Pivetta added a comment -

          This was fixed in master

          Show
          Marco Pivetta added a comment - This was fixed in master

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Flip
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: