From 724422732704f21b4a4fd1c9c218b470415d4cae Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 22 Dec 2024 19:01:52 +0700 Subject: [PATCH] more fixture for both attribute --- ...index_by_integer_attribute_on_both.php.inc | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 rules-tests/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/Fixture/OneToMany/with_index_by_integer_attribute_on_both.php.inc diff --git a/rules-tests/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/Fixture/OneToMany/with_index_by_integer_attribute_on_both.php.inc b/rules-tests/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/Fixture/OneToMany/with_index_by_integer_attribute_on_both.php.inc new file mode 100644 index 00000000..e7d9d861 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/Fixture/OneToMany/with_index_by_integer_attribute_on_both.php.inc @@ -0,0 +1,43 @@ +|TrainingWithIntegerIdAttribute[] + */ + #[ORM\OneToMany(targetEntity: TrainingWithIntegerIdAttribute::class, mappedBy: 'trainer', indexBy: 'id')] + private $trainings = []; +} + +?> +----- + + */ + #[ORM\OneToMany(targetEntity: TrainingWithIntegerIdAttribute::class, mappedBy: 'trainer', indexBy: 'id')] + private $trainings = []; +} + +?>