Skip to content

Commit

Permalink
Merge pull request #10100 from greg0ire/forward-compat-attributes
Browse files Browse the repository at this point in the history
Forward compat attributes
  • Loading branch information
greg0ire committed Oct 5, 2022
2 parents 8280f41 + 021722a commit 9bec416
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/Models/Cache/City.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class City
* @JoinColumn(name="state_id", referencedColumnName="id")
*/
#[ORM\Cache]
#[ORM\ManyToOne(targetEntity: 'State', inversedBy: 'citities')]
#[ORM\ManyToOne(targetEntity: 'State', inversedBy: 'cities')]
#[ORM\JoinColumn(name: 'state_id', referencedColumnName: 'id')]
protected $state;

Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/Functional/Ticket/DDC5684Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class DDC5684Object
/**
* @var DDC5684ObjectIdType
* @Id
* @Column(type=Doctrine\Tests\ORM\Functional\Ticket\DDC5684ObjectIdType::class)
* @Column(type=DDC5684ObjectIdType::class)
* @GeneratedValue(strategy="AUTO")
*/
public $id;
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public function __toString(): string
* @InheritanceType("JOINED")
* @DiscriminatorColumn(name="discr", type="gh6141people")
* @DiscriminatorMap({
* Doctrine\Tests\ORM\Functional\Ticket\GH6141People::BOSS = GH6141Boss::class,
* Doctrine\Tests\ORM\Functional\Ticket\GH6141People::EMPLOYEE = GH6141Employee::class
* GH6141People::BOSS = GH6141Boss::class,
* GH6141People::EMPLOYEE = GH6141Employee::class
* })
*/
abstract class GH6141Person
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/Functional/Ticket/GH7012Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class GH7012UserData
/**
* @var QuotedUser
* @Id
* @OneToOne(targetEntity=Doctrine\Tests\Models\Quote\User::class)
* @OneToOne(targetEntity=QuotedUser::class)
* @JoinColumn(name="`user-id`", referencedColumnName="`user-id`", onDelete="CASCADE")
*/
public $user;
Expand Down
8 changes: 4 additions & 4 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/GH7512Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function testFindEntityByAssociationPropertyJoinedChildWithClearMetadata(
* @Entity()
* @InheritanceType("JOINED")
* @DiscriminatorMap({
* "entitya"=Doctrine\Tests\ORM\Functional\Ticket\GH7512EntityA::class,
* "entityB"=Doctrine\Tests\ORM\Functional\Ticket\GH7512EntityB::class
* "entitya"=GH7512EntityA::class,
* "entityB"=GH7512EntityB::class
* })
*/
class GH7512EntityA
Expand All @@ -63,7 +63,7 @@ class GH7512EntityA
public $id;

/**
* @OneToMany(targetEntity="Doctrine\Tests\ORM\Functional\Ticket\GH7512EntityC", mappedBy="entityA")
* @OneToMany(targetEntity="GH7512EntityC", mappedBy="entityA")
* @var Collection<int, GH7512EntityC>
*/
public $entityCs;
Expand All @@ -86,7 +86,7 @@ class GH7512EntityC
public $id;

/**
* @ManyToOne(targetEntity="Doctrine\Tests\ORM\Functional\Ticket\GH7512EntityA", inversedBy="entityCs")
* @ManyToOne(targetEntity="GH7512EntityA", inversedBy="entityCs")
* @var GH7512EntityA
*/
public $entityA;
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class DDC1649Two
{
/**
* @var DDC1649One
* @Id @ManyToOne(targetEntity="DDC1649One")@JoinColumn(name="id", referencedColumnName="id")
* @Id @ManyToOne(targetEntity="DDC1649One")
*/
public $one;
}
Expand Down

0 comments on commit 9bec416

Please sign in to comment.