diff --git a/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php b/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php index 1c7321666..348f48d99 100644 --- a/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php @@ -376,8 +376,8 @@ class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase $this->assertFalse($gblanco->getPhonenumbers()->isInitialized()); $newPhone = new CmsPhonenumber; - $phone->phonenumber = 555; - $gblanco->addPhonenumber($phone); + $newPhone->phonenumber = 555; + $gblanco->addPhonenumber($newPhone); $this->assertFalse($gblanco->getPhonenumbers()->isInitialized());