diff --git a/tests/Doctrine/Tests/Models/DDC6613/Phone.php b/tests/Doctrine/Tests/Models/DDC6613/Phone.php index 32f878eee..9ce090960 100644 --- a/tests/Doctrine/Tests/Models/DDC6613/Phone.php +++ b/tests/Doctrine/Tests/Models/DDC6613/Phone.php @@ -10,7 +10,6 @@ namespace Doctrine\Tests\Models\DDC6613; /** - * @Entity(readOnly=true) * @Table(name="ddc6613_phone") */ @@ -19,9 +18,13 @@ class Phone /** * @Id - * @GeneratedValue + * @GeneratedValue(strategy="NONE") * @Column(type="integer") */ public $id; + public function __construct() + { + $this->id = uniqid('phone', true); + } } \ No newline at end of file diff --git a/tests/Doctrine/Tests/Models/DDC6613/User.php b/tests/Doctrine/Tests/Models/DDC6613/User.php index ee4e7260b..6b233c0a2 100644 --- a/tests/Doctrine/Tests/Models/DDC6613/User.php +++ b/tests/Doctrine/Tests/Models/DDC6613/User.php @@ -20,10 +20,10 @@ class User /** * @Id - * @GeneratedValue - * @Column(type="integer") + * @GeneratedValue(strategy="NONE") + * @Column(type="string") */ - public $id; + private $id; /** @@ -36,6 +36,7 @@ class User */ public function __construct() { + $this->id = uniqid('user', true); $this->phones = new ArrayCollection(); }