Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use valid relationships #10649

Merged
merged 1 commit into from
Apr 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/Doctrine/Tests/ORM/Mapping/ClassMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
use Doctrine\ORM\Mapping\DefaultTypedFieldMapper;
use Doctrine\ORM\Mapping\DiscriminatorColumnMapping;
use Doctrine\ORM\Mapping\JoinTableMapping;
use Doctrine\ORM\Mapping\ManyToOneAssociationMapping;
use Doctrine\ORM\Mapping\MappedSuperclass;
use Doctrine\ORM\Mapping\MappingException;
use Doctrine\ORM\Mapping\OneToManyAssociationMapping;
use Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
use Doctrine\Persistence\Mapping\RuntimeReflectionService;
use Doctrine\Persistence\Mapping\StaticReflectionService;
Expand Down Expand Up @@ -355,13 +355,13 @@ public function testDuplicateAssociationMappingException(): void
$cm = new ClassMetadata(CmsUser::class);
$cm->initializeReflection(new RuntimeReflectionService());

$a1 = ManyToOneAssociationMapping::fromMappingArray([
$a1 = OneToManyAssociationMapping::fromMappingArray([
'fieldName' => 'foo',
'sourceEntity' => stdClass::class,
'targetEntity' => stdClass::class,
'mappedBy' => 'foo',
]);
$a2 = ManyToOneAssociationMapping::fromMappingArray([
$a2 = OneToManyAssociationMapping::fromMappingArray([
'fieldName' => 'foo',
'sourceEntity' => stdClass::class,
'targetEntity' => stdClass::class,
Expand Down