Commit 2c508102 authored by piccoloprincipe's avatar piccoloprincipe

[2.0] addresses #2307

parent 0f2499f9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment