-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test ManyToManyMultipleRelationshipSameTargetEntity with ID field of …
…both common and custom names
- Loading branch information
Vladimir Klimes
committed
Aug 23, 2024
1 parent
d058a8f
commit e1072fc
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
tests/Fixtures/Relation/ManyToManyMultipleRelationshipCustomIdNamedEntity.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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Sonata\EntityAuditBundle\Tests\Fixtures\Relation; | ||
|
||
use Doctrine\DBAL\Types\Types; | ||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
#[ORM\Entity] | ||
class ManyToManyMultipleRelationshipCustomIdNamedEntity extends ManyToManyMultipleRelationshipEntity | ||
{ | ||
/** | ||
* @var int|null | ||
*/ | ||
#[ORM\Id] | ||
#[ORM\Column(name: 'strange_owned_id_name', type: Types::INTEGER)] | ||
#[ORM\GeneratedValue] | ||
protected $id; | ||
} |
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