1
0
mirror of synced 2025-01-09 10:37:09 +03:00

adds test for non-existent field

This commit is contained in:
Johannes M. Schmitt 2013-11-01 20:54:45 +01:00
parent 30897c3115
commit 41c937b983

View File

@ -138,6 +138,16 @@ class ValueObjectsTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->clear();
$this->assertNull($this->_em->find(__NAMESPACE__.'\\DDC93Person', $person->id));
}
/**
* @expectedException Doctrine\ORM\Query\QueryException
* @expectedExceptionMessage no field or association named address.asdfasdf
*/
public function testDqlWithNonExistentEmbeddableField()
{
$this->_em->createQuery("SELECT p FROM " . __NAMESPACE__ . "\\DDC93Person p WHERE p.address.asdfasdf IS NULL")
->execute();
}
}
/**