[2.0] addresses #2307
This commit is contained in:
parent
0f2499f93b
commit
2c508102c4
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue