@@ 191-200 (lines=10) @@ | ||
188 | * |
|
189 | * @return string|null |
|
190 | */ |
|
191 | public function getTargetEntity($container, $entity, $relation) |
|
192 | { |
|
193 | $targetEntity = null; |
|
194 | $infos = $this->getRelationInfos($container, $entity, $relation); |
|
195 | if (isset($infos[self::RELATION_KEY_TARGET_ENTITY])) { |
|
196 | $targetEntity = $infos[self::RELATION_KEY_TARGET_ENTITY]; |
|
197 | } |
|
198 | ||
199 | return $targetEntity; |
|
200 | } |
|
201 | ||
202 | /** |
|
203 | * @param string $container |
|
@@ 257-266 (lines=10) @@ | ||
254 | * |
|
255 | * @return string|null |
|
256 | */ |
|
257 | public function getJoinTable($container, $entity, $relation) |
|
258 | { |
|
259 | $joinTable = null; |
|
260 | $infos = $this->getRelationInfos($container, $entity, $relation); |
|
261 | if (isset($infos[self::RELATION_KEY_JOIN_TABLE])) { |
|
262 | $joinTable = $infos[self::RELATION_KEY_JOIN_TABLE]; |
|
263 | } |
|
264 | ||
265 | return $joinTable; |
|
266 | } |
|
267 | ||
268 | /** |
|
269 | * @param string $relation |