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 = []; +} + +?>