Re-added coverage for DDC-369 and DDC-954.
This commit is contained in:
parent
f54f8f8a95
commit
b32bb26a84
@ -53,21 +53,29 @@ class CompanyPerson
|
||||
* @GeneratedValue
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @Column
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @OneToOne(targetEntity="CompanyPerson")
|
||||
* @JoinColumn(name="spouse_id", referencedColumnName="id")
|
||||
* @JoinColumn(name="spouse_id", referencedColumnName="id", onDelete="CASCADE")
|
||||
*/
|
||||
private $spouse;
|
||||
|
||||
/**
|
||||
* @ManyToMany(targetEntity="CompanyPerson")
|
||||
* @JoinTable(name="company_persons_friends",
|
||||
joinColumns={@JoinColumn(name="person_id", referencedColumnName="id")},
|
||||
inverseJoinColumns={@JoinColumn(name="friend_id", referencedColumnName="id")})
|
||||
* @JoinTable(
|
||||
* name="company_persons_friends",
|
||||
* joinColumns={
|
||||
* @JoinColumn(name="person_id", referencedColumnName="id", onDelete="CASCADE")
|
||||
* },
|
||||
* inverseJoinColumns={
|
||||
* @JoinColumn(name="friend_id", referencedColumnName="id", onDelete="CASCADE")
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
private $friends;
|
||||
|
||||
|
@ -128,7 +128,7 @@ class AdvancedDqlQueryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
'SELECT count(p.id) FROM Doctrine\Tests\Models\Company\CompanyEmployee p WHERE p.salary = 1')->getResult()) > 0);
|
||||
}
|
||||
|
||||
/*public function testDeleteAs()
|
||||
public function testDeleteAs()
|
||||
{
|
||||
$dql = 'DELETE Doctrine\Tests\Models\Company\CompanyEmployee AS p';
|
||||
$this->_em->createQuery($dql)->getResult();
|
||||
@ -137,7 +137,7 @@ class AdvancedDqlQueryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
$result = $this->_em->createQuery($dql)->getSingleScalarResult();
|
||||
|
||||
$this->assertEquals(0, $result);
|
||||
}*/
|
||||
}
|
||||
|
||||
public function generateFixture()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user