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