-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/#1507-fixed-wrong-property-name-in-resultset-map…
- Loading branch information
Showing
6 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Models\DDC3899; | ||
|
||
/** | ||
* @Entity | ||
* @Table(name="dc3899_contracts") | ||
* @InheritanceType("SINGLE_TABLE") | ||
* @DiscriminatorColumn(name="discr", type="string") | ||
* @DiscriminatorMap({ | ||
* "fix" = "DDC3899FixContract", | ||
* "flexible" = "DDC3899FlexContract" | ||
* }) | ||
*/ | ||
abstract class DDC3899Contract | ||
{ | ||
/** @Id @Column(type="integer") */ | ||
public $id; | ||
|
||
/** @Column(type="boolean") */ | ||
public $completed = false; | ||
|
||
/** @ManyToOne(targetEntity="DDC3899User", inversedBy="contract") */ | ||
public $user; | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/Doctrine/Tests/Models/DDC3899/DDC3899FixContract.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Models\DDC3899; | ||
|
||
/** | ||
* @Entity | ||
*/ | ||
class DDC3899FixContract extends DDC3899Contract | ||
{ | ||
/** @column(type="integer") */ | ||
public $fixPrice = 0; | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/Doctrine/Tests/Models/DDC3899/DDC3899FlexContract.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Models\DDC3899; | ||
|
||
/** | ||
* @Entity | ||
*/ | ||
class DDC3899FlexContract extends DDC3899Contract | ||
{ | ||
/** @column(type="integer") */ | ||
public $hoursWorked = 0; | ||
|
||
/** @column(type="integer") */ | ||
public $pricePerHour = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Models\DDC3899; | ||
|
||
/** | ||
* @Entity | ||
* @Table(name="dc3899_users") | ||
*/ | ||
class DDC3899User | ||
{ | ||
/** @Id @Column(type="integer") */ | ||
public $id; | ||
|
||
/** @OneToMany(targetEntity="DDC3899Contract", mappedBy="user") */ | ||
public $contracts; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters