| @@ 395-417 (lines=23) @@ | ||
| 392 | * |
|
| 393 | * @return $this|ChildChannelQuery The current query, for fluid interface |
|
| 394 | */ |
|
| 395 | public function joinInstance($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 396 | { |
|
| 397 | $tableMap = $this->getTableMap(); |
|
| 398 | $relationMap = $tableMap->getRelation('Instance'); |
|
| 399 | ||
| 400 | // create a ModelJoin object for this join |
|
| 401 | $join = new ModelJoin(); |
|
| 402 | $join->setJoinType($joinType); |
|
| 403 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 404 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 405 | $join->setPreviousJoin($previousJoin); |
|
| 406 | } |
|
| 407 | ||
| 408 | // add the ModelJoin to the current object |
|
| 409 | if ($relationAlias) { |
|
| 410 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 411 | $this->addJoinObject($join, $relationAlias); |
|
| 412 | } else { |
|
| 413 | $this->addJoinObject($join, 'Instance'); |
|
| 414 | } |
|
| 415 | ||
| 416 | return $this; |
|
| 417 | } |
|
| 418 | ||
| 419 | /** |
|
| 420 | * Use the Instance relation Instance object |
|
| @@ 468-490 (lines=23) @@ | ||
| 465 | * |
|
| 466 | * @return $this|ChildChannelQuery The current query, for fluid interface |
|
| 467 | */ |
|
| 468 | public function joinSubscription($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 469 | { |
|
| 470 | $tableMap = $this->getTableMap(); |
|
| 471 | $relationMap = $tableMap->getRelation('Subscription'); |
|
| 472 | ||
| 473 | // create a ModelJoin object for this join |
|
| 474 | $join = new ModelJoin(); |
|
| 475 | $join->setJoinType($joinType); |
|
| 476 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 477 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 478 | $join->setPreviousJoin($previousJoin); |
|
| 479 | } |
|
| 480 | ||
| 481 | // add the ModelJoin to the current object |
|
| 482 | if ($relationAlias) { |
|
| 483 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 484 | $this->addJoinObject($join, $relationAlias); |
|
| 485 | } else { |
|
| 486 | $this->addJoinObject($join, 'Subscription'); |
|
| 487 | } |
|
| 488 | ||
| 489 | return $this; |
|
| 490 | } |
|
| 491 | ||
| 492 | /** |
|
| 493 | * Use the Subscription relation Subscription object |
|
| @@ 525-547 (lines=23) @@ | ||
| 522 | * |
|
| 523 | * @return $this|ChildConnectionQuery The current query, for fluid interface |
|
| 524 | */ |
|
| 525 | public function joinInstance($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 526 | { |
|
| 527 | $tableMap = $this->getTableMap(); |
|
| 528 | $relationMap = $tableMap->getRelation('Instance'); |
|
| 529 | ||
| 530 | // create a ModelJoin object for this join |
|
| 531 | $join = new ModelJoin(); |
|
| 532 | $join->setJoinType($joinType); |
|
| 533 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 534 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 535 | $join->setPreviousJoin($previousJoin); |
|
| 536 | } |
|
| 537 | ||
| 538 | // add the ModelJoin to the current object |
|
| 539 | if ($relationAlias) { |
|
| 540 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 541 | $this->addJoinObject($join, $relationAlias); |
|
| 542 | } else { |
|
| 543 | $this->addJoinObject($join, 'Instance'); |
|
| 544 | } |
|
| 545 | ||
| 546 | return $this; |
|
| 547 | } |
|
| 548 | ||
| 549 | /** |
|
| 550 | * Use the Instance relation Instance object |
|
| @@ 602-624 (lines=23) @@ | ||
| 599 | * |
|
| 600 | * @return $this|ChildConnectionQuery The current query, for fluid interface |
|
| 601 | */ |
|
| 602 | public function joinUser($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 603 | { |
|
| 604 | $tableMap = $this->getTableMap(); |
|
| 605 | $relationMap = $tableMap->getRelation('User'); |
|
| 606 | ||
| 607 | // create a ModelJoin object for this join |
|
| 608 | $join = new ModelJoin(); |
|
| 609 | $join->setJoinType($joinType); |
|
| 610 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 611 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 612 | $join->setPreviousJoin($previousJoin); |
|
| 613 | } |
|
| 614 | ||
| 615 | // add the ModelJoin to the current object |
|
| 616 | if ($relationAlias) { |
|
| 617 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 618 | $this->addJoinObject($join, $relationAlias); |
|
| 619 | } else { |
|
| 620 | $this->addJoinObject($join, 'User'); |
|
| 621 | } |
|
| 622 | ||
| 623 | return $this; |
|
| 624 | } |
|
| 625 | ||
| 626 | /** |
|
| 627 | * Use the User relation User object |
|
| @@ 405-427 (lines=23) @@ | ||
| 402 | * |
|
| 403 | * @return $this|ChildUserQuery The current query, for fluid interface |
|
| 404 | */ |
|
| 405 | public function joinInstance($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 406 | { |
|
| 407 | $tableMap = $this->getTableMap(); |
|
| 408 | $relationMap = $tableMap->getRelation('Instance'); |
|
| 409 | ||
| 410 | // create a ModelJoin object for this join |
|
| 411 | $join = new ModelJoin(); |
|
| 412 | $join->setJoinType($joinType); |
|
| 413 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 414 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 415 | $join->setPreviousJoin($previousJoin); |
|
| 416 | } |
|
| 417 | ||
| 418 | // add the ModelJoin to the current object |
|
| 419 | if ($relationAlias) { |
|
| 420 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 421 | $this->addJoinObject($join, $relationAlias); |
|
| 422 | } else { |
|
| 423 | $this->addJoinObject($join, 'Instance'); |
|
| 424 | } |
|
| 425 | ||
| 426 | return $this; |
|
| 427 | } |
|
| 428 | ||
| 429 | /** |
|
| 430 | * Use the Instance relation Instance object |
|
| @@ 478-500 (lines=23) @@ | ||
| 475 | * |
|
| 476 | * @return $this|ChildUserQuery The current query, for fluid interface |
|
| 477 | */ |
|
| 478 | public function joinConnection($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 479 | { |
|
| 480 | $tableMap = $this->getTableMap(); |
|
| 481 | $relationMap = $tableMap->getRelation('Connection'); |
|
| 482 | ||
| 483 | // create a ModelJoin object for this join |
|
| 484 | $join = new ModelJoin(); |
|
| 485 | $join->setJoinType($joinType); |
|
| 486 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 487 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 488 | $join->setPreviousJoin($previousJoin); |
|
| 489 | } |
|
| 490 | ||
| 491 | // add the ModelJoin to the current object |
|
| 492 | if ($relationAlias) { |
|
| 493 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 494 | $this->addJoinObject($join, $relationAlias); |
|
| 495 | } else { |
|
| 496 | $this->addJoinObject($join, 'Connection'); |
|
| 497 | } |
|
| 498 | ||
| 499 | return $this; |
|
| 500 | } |
|
| 501 | ||
| 502 | /** |
|
| 503 | * Use the Connection relation Connection object |
|
| @@ 551-573 (lines=23) @@ | ||
| 548 | * |
|
| 549 | * @return $this|ChildUserQuery The current query, for fluid interface |
|
| 550 | */ |
|
| 551 | public function joinSubscription($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 552 | { |
|
| 553 | $tableMap = $this->getTableMap(); |
|
| 554 | $relationMap = $tableMap->getRelation('Subscription'); |
|
| 555 | ||
| 556 | // create a ModelJoin object for this join |
|
| 557 | $join = new ModelJoin(); |
|
| 558 | $join->setJoinType($joinType); |
|
| 559 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 560 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 561 | $join->setPreviousJoin($previousJoin); |
|
| 562 | } |
|
| 563 | ||
| 564 | // add the ModelJoin to the current object |
|
| 565 | if ($relationAlias) { |
|
| 566 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 567 | $this->addJoinObject($join, $relationAlias); |
|
| 568 | } else { |
|
| 569 | $this->addJoinObject($join, 'Subscription'); |
|
| 570 | } |
|
| 571 | ||
| 572 | return $this; |
|
| 573 | } |
|
| 574 | ||
| 575 | /** |
|
| 576 | * Use the Subscription relation Subscription object |
|
| @@ 545-567 (lines=23) @@ | ||
| 542 | * |
|
| 543 | * @return $this|ChildInputQuery The current query, for fluid interface |
|
| 544 | */ |
|
| 545 | public function joinInstance($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 546 | { |
|
| 547 | $tableMap = $this->getTableMap(); |
|
| 548 | $relationMap = $tableMap->getRelation('Instance'); |
|
| 549 | ||
| 550 | // create a ModelJoin object for this join |
|
| 551 | $join = new ModelJoin(); |
|
| 552 | $join->setJoinType($joinType); |
|
| 553 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 554 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 555 | $join->setPreviousJoin($previousJoin); |
|
| 556 | } |
|
| 557 | ||
| 558 | // add the ModelJoin to the current object |
|
| 559 | if ($relationAlias) { |
|
| 560 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 561 | $this->addJoinObject($join, $relationAlias); |
|
| 562 | } else { |
|
| 563 | $this->addJoinObject($join, 'Instance'); |
|
| 564 | } |
|
| 565 | ||
| 566 | return $this; |
|
| 567 | } |
|
| 568 | ||
| 569 | /** |
|
| 570 | * Use the Instance relation Instance object |
|
| @@ 618-640 (lines=23) @@ | ||
| 615 | * |
|
| 616 | * @return $this|ChildInputQuery The current query, for fluid interface |
|
| 617 | */ |
|
| 618 | public function joinSubscription($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 619 | { |
|
| 620 | $tableMap = $this->getTableMap(); |
|
| 621 | $relationMap = $tableMap->getRelation('Subscription'); |
|
| 622 | ||
| 623 | // create a ModelJoin object for this join |
|
| 624 | $join = new ModelJoin(); |
|
| 625 | $join->setJoinType($joinType); |
|
| 626 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 627 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 628 | $join->setPreviousJoin($previousJoin); |
|
| 629 | } |
|
| 630 | ||
| 631 | // add the ModelJoin to the current object |
|
| 632 | if ($relationAlias) { |
|
| 633 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 634 | $this->addJoinObject($join, $relationAlias); |
|
| 635 | } else { |
|
| 636 | $this->addJoinObject($join, 'Subscription'); |
|
| 637 | } |
|
| 638 | ||
| 639 | return $this; |
|
| 640 | } |
|
| 641 | ||
| 642 | /** |
|
| 643 | * Use the Subscription relation Subscription object |
|
| @@ 341-363 (lines=23) @@ | ||
| 338 | * |
|
| 339 | * @return $this|ChildInstanceQuery The current query, for fluid interface |
|
| 340 | */ |
|
| 341 | public function joinUser($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 342 | { |
|
| 343 | $tableMap = $this->getTableMap(); |
|
| 344 | $relationMap = $tableMap->getRelation('User'); |
|
| 345 | ||
| 346 | // create a ModelJoin object for this join |
|
| 347 | $join = new ModelJoin(); |
|
| 348 | $join->setJoinType($joinType); |
|
| 349 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 350 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 351 | $join->setPreviousJoin($previousJoin); |
|
| 352 | } |
|
| 353 | ||
| 354 | // add the ModelJoin to the current object |
|
| 355 | if ($relationAlias) { |
|
| 356 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 357 | $this->addJoinObject($join, $relationAlias); |
|
| 358 | } else { |
|
| 359 | $this->addJoinObject($join, 'User'); |
|
| 360 | } |
|
| 361 | ||
| 362 | return $this; |
|
| 363 | } |
|
| 364 | ||
| 365 | /** |
|
| 366 | * Use the User relation User object |
|
| @@ 414-436 (lines=23) @@ | ||
| 411 | * |
|
| 412 | * @return $this|ChildInstanceQuery The current query, for fluid interface |
|
| 413 | */ |
|
| 414 | public function joinConnection($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 415 | { |
|
| 416 | $tableMap = $this->getTableMap(); |
|
| 417 | $relationMap = $tableMap->getRelation('Connection'); |
|
| 418 | ||
| 419 | // create a ModelJoin object for this join |
|
| 420 | $join = new ModelJoin(); |
|
| 421 | $join->setJoinType($joinType); |
|
| 422 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 423 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 424 | $join->setPreviousJoin($previousJoin); |
|
| 425 | } |
|
| 426 | ||
| 427 | // add the ModelJoin to the current object |
|
| 428 | if ($relationAlias) { |
|
| 429 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 430 | $this->addJoinObject($join, $relationAlias); |
|
| 431 | } else { |
|
| 432 | $this->addJoinObject($join, 'Connection'); |
|
| 433 | } |
|
| 434 | ||
| 435 | return $this; |
|
| 436 | } |
|
| 437 | ||
| 438 | /** |
|
| 439 | * Use the Connection relation Connection object |
|
| @@ 487-509 (lines=23) @@ | ||
| 484 | * |
|
| 485 | * @return $this|ChildInstanceQuery The current query, for fluid interface |
|
| 486 | */ |
|
| 487 | public function joinInput($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 488 | { |
|
| 489 | $tableMap = $this->getTableMap(); |
|
| 490 | $relationMap = $tableMap->getRelation('Input'); |
|
| 491 | ||
| 492 | // create a ModelJoin object for this join |
|
| 493 | $join = new ModelJoin(); |
|
| 494 | $join->setJoinType($joinType); |
|
| 495 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 496 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 497 | $join->setPreviousJoin($previousJoin); |
|
| 498 | } |
|
| 499 | ||
| 500 | // add the ModelJoin to the current object |
|
| 501 | if ($relationAlias) { |
|
| 502 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 503 | $this->addJoinObject($join, $relationAlias); |
|
| 504 | } else { |
|
| 505 | $this->addJoinObject($join, 'Input'); |
|
| 506 | } |
|
| 507 | ||
| 508 | return $this; |
|
| 509 | } |
|
| 510 | ||
| 511 | /** |
|
| 512 | * Use the Input relation Input object |
|
| @@ 560-582 (lines=23) @@ | ||
| 557 | * |
|
| 558 | * @return $this|ChildInstanceQuery The current query, for fluid interface |
|
| 559 | */ |
|
| 560 | public function joinChannel($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 561 | { |
|
| 562 | $tableMap = $this->getTableMap(); |
|
| 563 | $relationMap = $tableMap->getRelation('Channel'); |
|
| 564 | ||
| 565 | // create a ModelJoin object for this join |
|
| 566 | $join = new ModelJoin(); |
|
| 567 | $join->setJoinType($joinType); |
|
| 568 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 569 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 570 | $join->setPreviousJoin($previousJoin); |
|
| 571 | } |
|
| 572 | ||
| 573 | // add the ModelJoin to the current object |
|
| 574 | if ($relationAlias) { |
|
| 575 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 576 | $this->addJoinObject($join, $relationAlias); |
|
| 577 | } else { |
|
| 578 | $this->addJoinObject($join, 'Channel'); |
|
| 579 | } |
|
| 580 | ||
| 581 | return $this; |
|
| 582 | } |
|
| 583 | ||
| 584 | /** |
|
| 585 | * Use the Channel relation Channel object |
|
| @@ 633-655 (lines=23) @@ | ||
| 630 | * |
|
| 631 | * @return $this|ChildInstanceQuery The current query, for fluid interface |
|
| 632 | */ |
|
| 633 | public function joinSubscription($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 634 | { |
|
| 635 | $tableMap = $this->getTableMap(); |
|
| 636 | $relationMap = $tableMap->getRelation('Subscription'); |
|
| 637 | ||
| 638 | // create a ModelJoin object for this join |
|
| 639 | $join = new ModelJoin(); |
|
| 640 | $join->setJoinType($joinType); |
|
| 641 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 642 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 643 | $join->setPreviousJoin($previousJoin); |
|
| 644 | } |
|
| 645 | ||
| 646 | // add the ModelJoin to the current object |
|
| 647 | if ($relationAlias) { |
|
| 648 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 649 | $this->addJoinObject($join, $relationAlias); |
|
| 650 | } else { |
|
| 651 | $this->addJoinObject($join, 'Subscription'); |
|
| 652 | } |
|
| 653 | ||
| 654 | return $this; |
|
| 655 | } |
|
| 656 | ||
| 657 | /** |
|
| 658 | * Use the Subscription relation Subscription object |
|
| @@ 721-743 (lines=23) @@ | ||
| 718 | * |
|
| 719 | * @return $this|ChildSubscriptionQuery The current query, for fluid interface |
|
| 720 | */ |
|
| 721 | public function joinInstance($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 722 | { |
|
| 723 | $tableMap = $this->getTableMap(); |
|
| 724 | $relationMap = $tableMap->getRelation('Instance'); |
|
| 725 | ||
| 726 | // create a ModelJoin object for this join |
|
| 727 | $join = new ModelJoin(); |
|
| 728 | $join->setJoinType($joinType); |
|
| 729 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 730 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 731 | $join->setPreviousJoin($previousJoin); |
|
| 732 | } |
|
| 733 | ||
| 734 | // add the ModelJoin to the current object |
|
| 735 | if ($relationAlias) { |
|
| 736 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 737 | $this->addJoinObject($join, $relationAlias); |
|
| 738 | } else { |
|
| 739 | $this->addJoinObject($join, 'Instance'); |
|
| 740 | } |
|
| 741 | ||
| 742 | return $this; |
|
| 743 | } |
|
| 744 | ||
| 745 | /** |
|
| 746 | * Use the Instance relation Instance object |
|
| @@ 798-820 (lines=23) @@ | ||
| 795 | * |
|
| 796 | * @return $this|ChildSubscriptionQuery The current query, for fluid interface |
|
| 797 | */ |
|
| 798 | public function joinInput($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 799 | { |
|
| 800 | $tableMap = $this->getTableMap(); |
|
| 801 | $relationMap = $tableMap->getRelation('Input'); |
|
| 802 | ||
| 803 | // create a ModelJoin object for this join |
|
| 804 | $join = new ModelJoin(); |
|
| 805 | $join->setJoinType($joinType); |
|
| 806 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 807 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 808 | $join->setPreviousJoin($previousJoin); |
|
| 809 | } |
|
| 810 | ||
| 811 | // add the ModelJoin to the current object |
|
| 812 | if ($relationAlias) { |
|
| 813 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 814 | $this->addJoinObject($join, $relationAlias); |
|
| 815 | } else { |
|
| 816 | $this->addJoinObject($join, 'Input'); |
|
| 817 | } |
|
| 818 | ||
| 819 | return $this; |
|
| 820 | } |
|
| 821 | ||
| 822 | /** |
|
| 823 | * Use the Input relation Input object |
|
| @@ 875-897 (lines=23) @@ | ||
| 872 | * |
|
| 873 | * @return $this|ChildSubscriptionQuery The current query, for fluid interface |
|
| 874 | */ |
|
| 875 | public function joinUser($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
|
| 876 | { |
|
| 877 | $tableMap = $this->getTableMap(); |
|
| 878 | $relationMap = $tableMap->getRelation('User'); |
|
| 879 | ||
| 880 | // create a ModelJoin object for this join |
|
| 881 | $join = new ModelJoin(); |
|
| 882 | $join->setJoinType($joinType); |
|
| 883 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 884 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 885 | $join->setPreviousJoin($previousJoin); |
|
| 886 | } |
|
| 887 | ||
| 888 | // add the ModelJoin to the current object |
|
| 889 | if ($relationAlias) { |
|
| 890 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 891 | $this->addJoinObject($join, $relationAlias); |
|
| 892 | } else { |
|
| 893 | $this->addJoinObject($join, 'User'); |
|
| 894 | } |
|
| 895 | ||
| 896 | return $this; |
|
| 897 | } |
|
| 898 | ||
| 899 | /** |
|
| 900 | * Use the User relation User object |
|
| @@ 952-974 (lines=23) @@ | ||
| 949 | * |
|
| 950 | * @return $this|ChildSubscriptionQuery The current query, for fluid interface |
|
| 951 | */ |
|
| 952 | public function joinChannel($relationAlias = null, $joinType = Criteria::INNER_JOIN) |
|
| 953 | { |
|
| 954 | $tableMap = $this->getTableMap(); |
|
| 955 | $relationMap = $tableMap->getRelation('Channel'); |
|
| 956 | ||
| 957 | // create a ModelJoin object for this join |
|
| 958 | $join = new ModelJoin(); |
|
| 959 | $join->setJoinType($joinType); |
|
| 960 | $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); |
|
| 961 | if ($previousJoin = $this->getPreviousJoin()) { |
|
| 962 | $join->setPreviousJoin($previousJoin); |
|
| 963 | } |
|
| 964 | ||
| 965 | // add the ModelJoin to the current object |
|
| 966 | if ($relationAlias) { |
|
| 967 | $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); |
|
| 968 | $this->addJoinObject($join, $relationAlias); |
|
| 969 | } else { |
|
| 970 | $this->addJoinObject($join, 'Channel'); |
|
| 971 | } |
|
| 972 | ||
| 973 | return $this; |
|
| 974 | } |
|
| 975 | ||
| 976 | /** |
|
| 977 | * Use the Channel relation Channel object |
|