@@ 370-379 (lines=10) @@ | ||
367 | * |
|
368 | * @return ClassMetadataBuilder |
|
369 | */ |
|
370 | public function addManyToOne($name, $targetEntity, $inversedBy = null) |
|
371 | { |
|
372 | $builder = $this->createManyToOne($name, $targetEntity); |
|
373 | ||
374 | if ($inversedBy) { |
|
375 | $builder->inversedBy($inversedBy); |
|
376 | } |
|
377 | ||
378 | return $builder->build(); |
|
379 | } |
|
380 | ||
381 | /** |
|
382 | * Creates a ManyToOne Association Builder. |
|
@@ 449-458 (lines=10) @@ | ||
446 | * |
|
447 | * @return ClassMetadataBuilder |
|
448 | */ |
|
449 | public function addOwningOneToOne($name, $targetEntity, $inversedBy = null) |
|
450 | { |
|
451 | $builder = $this->createOneToOne($name, $targetEntity); |
|
452 | ||
453 | if ($inversedBy) { |
|
454 | $builder->inversedBy($inversedBy); |
|
455 | } |
|
456 | ||
457 | return $builder->build(); |
|
458 | } |
|
459 | ||
460 | /** |
|
461 | * Creates a ManyToMany Association Builder. |
|
@@ 489-498 (lines=10) @@ | ||
486 | * |
|
487 | * @return ClassMetadataBuilder |
|
488 | */ |
|
489 | public function addOwningManyToMany($name, $targetEntity, $inversedBy = null) |
|
490 | { |
|
491 | $builder = $this->createManyToMany($name, $targetEntity); |
|
492 | ||
493 | if ($inversedBy) { |
|
494 | $builder->inversedBy($inversedBy); |
|
495 | } |
|
496 | ||
497 | return $builder->build(); |
|
498 | } |
|
499 | ||
500 | /** |
|
501 | * Adds a simple inverse many to many association. |