@@ 113-119 (lines=7) @@ | ||
110 | /** |
|
111 | * @param AssociationMonomorphic $association |
|
112 | */ |
|
113 | private function addAssociationMonomorphic(AssociationMonomorphic $association) |
|
114 | { |
|
115 | $firstClass = $this->entities[$association->getFirst()->getBaseType()]; |
|
116 | $secondClass = $this->entities[$association->getLast()->getBaseType()]; |
|
117 | $firstClass->addAssociation($association); |
|
118 | $secondClass->addAssociation($association, false); |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @param AssociationPolymorphic $association |
|
@@ 124-132 (lines=9) @@ | ||
121 | /** |
|
122 | * @param AssociationPolymorphic $association |
|
123 | */ |
|
124 | private function addAssociationPolymorphic(AssociationPolymorphic $association) |
|
125 | { |
|
126 | $firstClass = $this->entities[$association->getFirst()->getBaseType()]; |
|
127 | $firstClass->addAssociation($association); |
|
128 | foreach ($association->getLast() as $last) { |
|
129 | $secondClass = $this->entities[$last->getBaseType()]; |
|
130 | $secondClass->addAssociation($association, false); |
|
131 | } |
|
132 | } |
|
133 | } |
|
134 |