| @@ 478-493 (lines=16) @@ | ||
| 475 | * |
|
| 476 | * @return ChildBannerImageI18nQuery The current query, for fluid interface |
|
| 477 | */ |
|
| 478 | public function filterByBannerImage($bannerImage, $comparison = null) |
|
| 479 | { |
|
| 480 | if ($bannerImage instanceof \xbanners\models\BannerImage) { |
|
| 481 | return $this |
|
| 482 | ->addUsingAlias(BannerImageI18nTableMap::COL_ID, $bannerImage->getId(), $comparison); |
|
| 483 | } elseif ($bannerImage instanceof ObjectCollection) { |
|
| 484 | if (null === $comparison) { |
|
| 485 | $comparison = Criteria::IN; |
|
| 486 | } |
|
| 487 | ||
| 488 | return $this |
|
| 489 | ->addUsingAlias(BannerImageI18nTableMap::COL_ID, $bannerImage->toKeyValue('PrimaryKey', 'Id'), $comparison); |
|
| 490 | } else { |
|
| 491 | throw new PropelException('filterByBannerImage() only accepts arguments of type \xbanners\models\BannerImage or Collection'); |
|
| 492 | } |
|
| 493 | } |
|
| 494 | ||
| 495 | /** |
|
| 496 | * Adds a JOIN clause to the query using the BannerImage relation |
|
| @@ 710-725 (lines=16) @@ | ||
| 707 | * |
|
| 708 | * @return ChildBannerImageQuery The current query, for fluid interface |
|
| 709 | */ |
|
| 710 | public function filterByBanners($banners, $comparison = null) |
|
| 711 | { |
|
| 712 | if ($banners instanceof \xbanners\models\Banners) { |
|
| 713 | return $this |
|
| 714 | ->addUsingAlias(BannerImageTableMap::COL_BANNER_ID, $banners->getId(), $comparison); |
|
| 715 | } elseif ($banners instanceof ObjectCollection) { |
|
| 716 | if (null === $comparison) { |
|
| 717 | $comparison = Criteria::IN; |
|
| 718 | } |
|
| 719 | ||
| 720 | return $this |
|
| 721 | ->addUsingAlias(BannerImageTableMap::COL_BANNER_ID, $banners->toKeyValue('PrimaryKey', 'Id'), $comparison); |
|
| 722 | } else { |
|
| 723 | throw new PropelException('filterByBanners() only accepts arguments of type \xbanners\models\Banners or Collection'); |
|
| 724 | } |
|
| 725 | } |
|
| 726 | ||
| 727 | /** |
|
| 728 | * Adds a JOIN clause to the query using the Banners relation |
|
| @@ 372-387 (lines=16) @@ | ||
| 369 | * |
|
| 370 | * @return ChildBannersI18nQuery The current query, for fluid interface |
|
| 371 | */ |
|
| 372 | public function filterByBanners($banners, $comparison = null) |
|
| 373 | { |
|
| 374 | if ($banners instanceof \xbanners\models\Banners) { |
|
| 375 | return $this |
|
| 376 | ->addUsingAlias(BannersI18nTableMap::COL_ID, $banners->getId(), $comparison); |
|
| 377 | } elseif ($banners instanceof ObjectCollection) { |
|
| 378 | if (null === $comparison) { |
|
| 379 | $comparison = Criteria::IN; |
|
| 380 | } |
|
| 381 | ||
| 382 | return $this |
|
| 383 | ->addUsingAlias(BannersI18nTableMap::COL_ID, $banners->toKeyValue('PrimaryKey', 'Id'), $comparison); |
|
| 384 | } else { |
|
| 385 | throw new PropelException('filterByBanners() only accepts arguments of type \xbanners\models\Banners or Collection'); |
|
| 386 | } |
|
| 387 | } |
|
| 388 | ||
| 389 | /** |
|
| 390 | * Adds a JOIN clause to the query using the Banners relation |
|