Using multiple repos bug #5209

Open
opened 2026-01-22 15:01:34 +01:00 by admin · 1 comment
Owner

Originally created by @nguyenthaialan on GitHub (Aug 4, 2016).

Example 1.
echo get_class($cityRepository->findOneBy(['name' => 'Example']));
$countryRepository->findOneBy(['name' => 'Example']);

Result:
City // Correct!

Example 1.
$countryRepository->findOneBy(['name' => 'Example']);
echo get_class($cityRepository->findOneBy(['name' => 'Example']));

Result:
Country // Incorrect!

Originally created by @nguyenthaialan on GitHub (Aug 4, 2016). Example 1. echo get_class($cityRepository->findOneBy(['name' => 'Example'])); $countryRepository->findOneBy(['name' => 'Example']); Result: City // Correct! Example 1. $countryRepository->findOneBy(['name' => 'Example']); echo get_class($cityRepository->findOneBy(['name' => 'Example'])); Result: Country // Incorrect!
admin added the BugMissing Tests labels 2026-01-22 15:01:34 +01:00
Author
Owner

@mikeSimonson commented on GitHub (Aug 4, 2016):

@nguyenthaialan Can you clarify the tests, what you are trying to achieve and what doesn't works exactly ?

@mikeSimonson commented on GitHub (Aug 4, 2016): @nguyenthaialan Can you clarify the tests, what you are trying to achieve and what doesn't works exactly ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5209