| @@ 445-458 (lines=14) @@ | ||
| 442 | * |
|
| 443 | * @return ChildChannelQuery The current query, for fluid interface |
|
| 444 | */ |
|
| 445 | public function filterBySubscription($subscription, $comparison = null) |
|
| 446 | { |
|
| 447 | if ($subscription instanceof \Jalle19\StatusManager\Database\Subscription) { |
|
| 448 | return $this |
|
| 449 | ->addUsingAlias(ChannelTableMap::COL_ID, $subscription->getChannelId(), $comparison); |
|
| 450 | } elseif ($subscription instanceof ObjectCollection) { |
|
| 451 | return $this |
|
| 452 | ->useSubscriptionQuery() |
|
| 453 | ->filterByPrimaryKeys($subscription->getPrimaryKeys()) |
|
| 454 | ->endUse(); |
|
| 455 | } else { |
|
| 456 | throw new PropelException('filterBySubscription() only accepts arguments of type \Jalle19\StatusManager\Database\Subscription or Collection'); |
|
| 457 | } |
|
| 458 | } |
|
| 459 | ||
| 460 | /** |
|
| 461 | * Adds a JOIN clause to the query using the Subscription relation |
|
| @@ 455-468 (lines=14) @@ | ||
| 452 | * |
|
| 453 | * @return ChildUserQuery The current query, for fluid interface |
|
| 454 | */ |
|
| 455 | public function filterByConnection($connection, $comparison = null) |
|
| 456 | { |
|
| 457 | if ($connection instanceof \Jalle19\StatusManager\Database\Connection) { |
|
| 458 | return $this |
|
| 459 | ->addUsingAlias(UserTableMap::COL_ID, $connection->getUserId(), $comparison); |
|
| 460 | } elseif ($connection instanceof ObjectCollection) { |
|
| 461 | return $this |
|
| 462 | ->useConnectionQuery() |
|
| 463 | ->filterByPrimaryKeys($connection->getPrimaryKeys()) |
|
| 464 | ->endUse(); |
|
| 465 | } else { |
|
| 466 | throw new PropelException('filterByConnection() only accepts arguments of type \Jalle19\StatusManager\Database\Connection or Collection'); |
|
| 467 | } |
|
| 468 | } |
|
| 469 | ||
| 470 | /** |
|
| 471 | * Adds a JOIN clause to the query using the Connection relation |
|
| @@ 528-541 (lines=14) @@ | ||
| 525 | * |
|
| 526 | * @return ChildUserQuery The current query, for fluid interface |
|
| 527 | */ |
|
| 528 | public function filterBySubscription($subscription, $comparison = null) |
|
| 529 | { |
|
| 530 | if ($subscription instanceof \Jalle19\StatusManager\Database\Subscription) { |
|
| 531 | return $this |
|
| 532 | ->addUsingAlias(UserTableMap::COL_ID, $subscription->getUserId(), $comparison); |
|
| 533 | } elseif ($subscription instanceof ObjectCollection) { |
|
| 534 | return $this |
|
| 535 | ->useSubscriptionQuery() |
|
| 536 | ->filterByPrimaryKeys($subscription->getPrimaryKeys()) |
|
| 537 | ->endUse(); |
|
| 538 | } else { |
|
| 539 | throw new PropelException('filterBySubscription() only accepts arguments of type \Jalle19\StatusManager\Database\Subscription or Collection'); |
|
| 540 | } |
|
| 541 | } |
|
| 542 | ||
| 543 | /** |
|
| 544 | * Adds a JOIN clause to the query using the Subscription relation |
|
| @@ 595-608 (lines=14) @@ | ||
| 592 | * |
|
| 593 | * @return ChildInputQuery The current query, for fluid interface |
|
| 594 | */ |
|
| 595 | public function filterBySubscription($subscription, $comparison = null) |
|
| 596 | { |
|
| 597 | if ($subscription instanceof \Jalle19\StatusManager\Database\Subscription) { |
|
| 598 | return $this |
|
| 599 | ->addUsingAlias(InputTableMap::COL_UUID, $subscription->getInputUuid(), $comparison); |
|
| 600 | } elseif ($subscription instanceof ObjectCollection) { |
|
| 601 | return $this |
|
| 602 | ->useSubscriptionQuery() |
|
| 603 | ->filterByPrimaryKeys($subscription->getPrimaryKeys()) |
|
| 604 | ->endUse(); |
|
| 605 | } else { |
|
| 606 | throw new PropelException('filterBySubscription() only accepts arguments of type \Jalle19\StatusManager\Database\Subscription or Collection'); |
|
| 607 | } |
|
| 608 | } |
|
| 609 | ||
| 610 | /** |
|
| 611 | * Adds a JOIN clause to the query using the Subscription relation |
|
| @@ 318-331 (lines=14) @@ | ||
| 315 | * |
|
| 316 | * @return ChildInstanceQuery The current query, for fluid interface |
|
| 317 | */ |
|
| 318 | public function filterByUser($user, $comparison = null) |
|
| 319 | { |
|
| 320 | if ($user instanceof \Jalle19\StatusManager\Database\User) { |
|
| 321 | return $this |
|
| 322 | ->addUsingAlias(InstanceTableMap::COL_NAME, $user->getInstanceName(), $comparison); |
|
| 323 | } elseif ($user instanceof ObjectCollection) { |
|
| 324 | return $this |
|
| 325 | ->useUserQuery() |
|
| 326 | ->filterByPrimaryKeys($user->getPrimaryKeys()) |
|
| 327 | ->endUse(); |
|
| 328 | } else { |
|
| 329 | throw new PropelException('filterByUser() only accepts arguments of type \Jalle19\StatusManager\Database\User or Collection'); |
|
| 330 | } |
|
| 331 | } |
|
| 332 | ||
| 333 | /** |
|
| 334 | * Adds a JOIN clause to the query using the User relation |
|
| @@ 391-404 (lines=14) @@ | ||
| 388 | * |
|
| 389 | * @return ChildInstanceQuery The current query, for fluid interface |
|
| 390 | */ |
|
| 391 | public function filterByConnection($connection, $comparison = null) |
|
| 392 | { |
|
| 393 | if ($connection instanceof \Jalle19\StatusManager\Database\Connection) { |
|
| 394 | return $this |
|
| 395 | ->addUsingAlias(InstanceTableMap::COL_NAME, $connection->getInstanceName(), $comparison); |
|
| 396 | } elseif ($connection instanceof ObjectCollection) { |
|
| 397 | return $this |
|
| 398 | ->useConnectionQuery() |
|
| 399 | ->filterByPrimaryKeys($connection->getPrimaryKeys()) |
|
| 400 | ->endUse(); |
|
| 401 | } else { |
|
| 402 | throw new PropelException('filterByConnection() only accepts arguments of type \Jalle19\StatusManager\Database\Connection or Collection'); |
|
| 403 | } |
|
| 404 | } |
|
| 405 | ||
| 406 | /** |
|
| 407 | * Adds a JOIN clause to the query using the Connection relation |
|
| @@ 464-477 (lines=14) @@ | ||
| 461 | * |
|
| 462 | * @return ChildInstanceQuery The current query, for fluid interface |
|
| 463 | */ |
|
| 464 | public function filterByInput($input, $comparison = null) |
|
| 465 | { |
|
| 466 | if ($input instanceof \Jalle19\StatusManager\Database\Input) { |
|
| 467 | return $this |
|
| 468 | ->addUsingAlias(InstanceTableMap::COL_NAME, $input->getInstanceName(), $comparison); |
|
| 469 | } elseif ($input instanceof ObjectCollection) { |
|
| 470 | return $this |
|
| 471 | ->useInputQuery() |
|
| 472 | ->filterByPrimaryKeys($input->getPrimaryKeys()) |
|
| 473 | ->endUse(); |
|
| 474 | } else { |
|
| 475 | throw new PropelException('filterByInput() only accepts arguments of type \Jalle19\StatusManager\Database\Input or Collection'); |
|
| 476 | } |
|
| 477 | } |
|
| 478 | ||
| 479 | /** |
|
| 480 | * Adds a JOIN clause to the query using the Input relation |
|
| @@ 537-550 (lines=14) @@ | ||
| 534 | * |
|
| 535 | * @return ChildInstanceQuery The current query, for fluid interface |
|
| 536 | */ |
|
| 537 | public function filterByChannel($channel, $comparison = null) |
|
| 538 | { |
|
| 539 | if ($channel instanceof \Jalle19\StatusManager\Database\Channel) { |
|
| 540 | return $this |
|
| 541 | ->addUsingAlias(InstanceTableMap::COL_NAME, $channel->getInstanceName(), $comparison); |
|
| 542 | } elseif ($channel instanceof ObjectCollection) { |
|
| 543 | return $this |
|
| 544 | ->useChannelQuery() |
|
| 545 | ->filterByPrimaryKeys($channel->getPrimaryKeys()) |
|
| 546 | ->endUse(); |
|
| 547 | } else { |
|
| 548 | throw new PropelException('filterByChannel() only accepts arguments of type \Jalle19\StatusManager\Database\Channel or Collection'); |
|
| 549 | } |
|
| 550 | } |
|
| 551 | ||
| 552 | /** |
|
| 553 | * Adds a JOIN clause to the query using the Channel relation |
|
| @@ 610-623 (lines=14) @@ | ||
| 607 | * |
|
| 608 | * @return ChildInstanceQuery The current query, for fluid interface |
|
| 609 | */ |
|
| 610 | public function filterBySubscription($subscription, $comparison = null) |
|
| 611 | { |
|
| 612 | if ($subscription instanceof \Jalle19\StatusManager\Database\Subscription) { |
|
| 613 | return $this |
|
| 614 | ->addUsingAlias(InstanceTableMap::COL_NAME, $subscription->getInstanceName(), $comparison); |
|
| 615 | } elseif ($subscription instanceof ObjectCollection) { |
|
| 616 | return $this |
|
| 617 | ->useSubscriptionQuery() |
|
| 618 | ->filterByPrimaryKeys($subscription->getPrimaryKeys()) |
|
| 619 | ->endUse(); |
|
| 620 | } else { |
|
| 621 | throw new PropelException('filterBySubscription() only accepts arguments of type \Jalle19\StatusManager\Database\Subscription or Collection'); |
|
| 622 | } |
|
| 623 | } |
|
| 624 | ||
| 625 | /** |
|
| 626 | * Adds a JOIN clause to the query using the Subscription relation |
|