Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #19227 [DoctrineBridge] fixed default parameter value in UniqueEn…
…tityValidator (HeahDude) This PR was merged into the 3.1 branch. Discussion ---------- [DoctrineBridge] fixed default parameter value in UniqueEntityValidator | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19209 | License | MIT | Doc PR | ~ Commits ------- 40c0c52 [DoctrineBridge] fixed default parameter value in UniqueEntityValidator
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity2.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,45 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Bridge\Doctrine\Tests\Fixtures; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* @ORM\Entity | ||
*/ | ||
class AssociationEntity2 | ||
{ | ||
/** | ||
* @var int | ||
* @ORM\Id @ORM\GeneratedValue | ||
* @ORM\Column(type="integer") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @ORM\ManyToOne(targetEntity="SingleIntIdNoToStringEntity") | ||
* | ||
* @var \Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity | ||
*/ | ||
public $single; | ||
|
||
/** | ||
* @ORM\ManyToOne(targetEntity="CompositeIntIdEntity") | ||
* @ORM\JoinColumns({ | ||
* @ORM\JoinColumn(name="composite_id1", referencedColumnName="id1"), | ||
* @ORM\JoinColumn(name="composite_id2", referencedColumnName="id2") | ||
* }) | ||
* | ||
* @var \Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeIntIdEntity | ||
*/ | ||
public $composite; | ||
} |
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