[2.0] addresses #2307
This commit is contained in:
parent
0f2499f93b
commit
2c508102c4
@ -37,6 +37,13 @@ class OneToManyBidirectionalAssociationTest extends \Doctrine\Tests\OrmFunctiona
|
|||||||
$this->assertFeatureForeignKeyIs($this->product->getId(), $this->secondFeature);
|
$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() {
|
public function testDoesNotSaveAnInverseSideSet() {
|
||||||
$this->product->brokenAddFeature($this->firstFeature);
|
$this->product->brokenAddFeature($this->firstFeature);
|
||||||
$this->_em->save($this->product);
|
$this->_em->save($this->product);
|
||||||
|
Loading…
Reference in New Issue
Block a user