@@ 675-685 (lines=11) @@ | ||
672 | return $mapping; |
|
673 | } |
|
674 | ||
675 | public function mapManyToOne($mapping) |
|
676 | { |
|
677 | $mapping = $this->validateAndCompleteAssociationMapping($mapping); |
|
678 | ||
679 | $mapping['isOwning'] = true; |
|
680 | $mapping['type'] = self::MANY_TO_ONE; |
|
681 | ||
682 | $mapping = $this->checkAndStoreIndexMapping($mapping); |
|
683 | ||
684 | $this->storeAssociationMapping($mapping); |
|
685 | } |
|
686 | ||
687 | public function mapManyToMany($mapping) |
|
688 | { |
|
@@ 687-695 (lines=9) @@ | ||
684 | $this->storeAssociationMapping($mapping); |
|
685 | } |
|
686 | ||
687 | public function mapManyToMany($mapping) |
|
688 | { |
|
689 | $mapping = $this->validateAndCompleteAssociationMapping($mapping); |
|
690 | ||
691 | $mapping['isOwning'] = empty($mapping['mappedBy']); |
|
692 | $mapping['type'] = self::MANY_TO_MANY; |
|
693 | ||
694 | $this->storeAssociationMapping($mapping); |
|
695 | } |
|
696 | ||
697 | private function checkAndStoreIndexMapping($mapping) |
|
698 | { |