X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FORM%2FFunctional%2FTicket%2FDDC588Test.php;fp=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FORM%2FFunctional%2FTicket%2FDDC588Test.php;h=3f899d78678ba9f6f0fb7efccf13367d6bcaac7e;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC588Test.php b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC588Test.php new file mode 100644 index 0000000..3f899d7 --- /dev/null +++ b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC588Test.php @@ -0,0 +1,48 @@ +_schemaTool->createSchema(array( + $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC588Site'), + )); + } + + public function testIssue() + { + $site = new DDC588Site('Foo'); + + $this->_em->persist($site); + $this->_em->flush(); + // Following should not result in exception + $this->_em->refresh($site); + } +} + +/** + * @Entity + */ +class DDC588Site +{ + /** + * @Id + * @Column(type="integer", name="site_id") + * @GeneratedValue + */ + public $id; + + /** + * @Column(type="string", length=45) + */ + protected $name = null; + + public function __construct($name = '') + { + $this->name = $name; + } +}