1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] addresses #2307

This commit is contained in:
piccoloprincipe 2009-07-02 07:47:57 +00:00
parent 0f2499f93b
commit 2c508102c4

View File

@ -37,6 +37,13 @@ class OneToManyBidirectionalAssociationTest extends \Doctrine\Tests\OrmFunctiona
$this->assertFeatureForeignKeyIs($this->product->getId(), $this->secondFeature);
}
public function testSavesAnEmptyCollection()
{
$this->_em->save($this->product);
$this->assertEquals(0, count($this->product->getFeatures()));
}
public function testDoesNotSaveAnInverseSideSet() {
$this->product->brokenAddFeature($this->firstFeature);
$this->_em->save($this->product);