From cfe125940092e4c7403201703ae0428b943432f5 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 17 Dec 2011 12:39:44 +0100 Subject: [PATCH] DDC-1541 - Fix wrong references in ClassMetadataBuilder --- .../ORM/Mapping/Builder/ClassMetadataBuilder.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php b/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php index f7d5031cd..3765fbd93 100644 --- a/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php +++ b/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php @@ -298,7 +298,7 @@ class ClassMetadataBuilder $builder = $this->createManyToOne($name, $targetEntity); if ($inversedBy) { - $builder->setInversedBy($inversedBy); + $builder->inversedBy($inversedBy); } return $builder->build(); @@ -355,7 +355,7 @@ class ClassMetadataBuilder public function addInverseOneToOne($name, $targetEntity, $mappedBy) { $builder = $this->createOneToOne($name, $targetEntity); - $builder->setMappedBy($mappedBy); + $builder->mappedBy($mappedBy); return $builder->build(); } @@ -373,7 +373,7 @@ class ClassMetadataBuilder $builder = $this->createOneToOne($name, $targetEntity); if ($inversedBy) { - $builder->setInversedBy($inversedBy); + $builder->inversedBy($inversedBy); } return $builder->build(); @@ -411,7 +411,7 @@ class ClassMetadataBuilder $builder = $this->createManyToMany($name, $targetEntity); if ($inversedBy) { - $builder->setInversedBy($inversedBy); + $builder->inversedBy($inversedBy); } return $builder->build(); @@ -428,7 +428,7 @@ class ClassMetadataBuilder public function addInverseManyToMany($name, $targetEntity, $mappedBy) { $builder = $this->createManyToMany($name, $targetEntity); - $builder->setMappedBy($mappedBy); + $builder->mappedBy($mappedBy); return $builder->build(); } @@ -463,7 +463,7 @@ class ClassMetadataBuilder public function addOneToMany($name, $targetEntity, $mappedBy) { $builder = $this->createOneToMany($name, $targetEntity); - $builder->setMappedBy($mappedBy); + $builder->mappedBy($mappedBy); return $builder->build(); }