@@ 1707-1749 (lines=43) @@ | ||
1704 | * @return ObjectCollection|ChildBannerImageI18n[] List of ChildBannerImageI18n objects |
|
1705 | * @throws PropelException |
|
1706 | */ |
|
1707 | public function getBannerImageI18ns(Criteria $criteria = null, ConnectionInterface $con = null) |
|
1708 | { |
|
1709 | $partial = $this->collBannerImageI18nsPartial && !$this->isNew(); |
|
1710 | if (null === $this->collBannerImageI18ns || null !== $criteria || $partial) { |
|
1711 | if ($this->isNew() && null === $this->collBannerImageI18ns) { |
|
1712 | // return empty collection |
|
1713 | $this->initBannerImageI18ns(); |
|
1714 | } else { |
|
1715 | $collBannerImageI18ns = ChildBannerImageI18nQuery::create(null, $criteria) |
|
1716 | ->filterByBannerImage($this) |
|
1717 | ->find($con); |
|
1718 | ||
1719 | if (null !== $criteria) { |
|
1720 | if (false !== $this->collBannerImageI18nsPartial && count($collBannerImageI18ns)) { |
|
1721 | $this->initBannerImageI18ns(false); |
|
1722 | ||
1723 | foreach ($collBannerImageI18ns as $obj) { |
|
1724 | if (false == $this->collBannerImageI18ns->contains($obj)) { |
|
1725 | $this->collBannerImageI18ns->append($obj); |
|
1726 | } |
|
1727 | } |
|
1728 | ||
1729 | $this->collBannerImageI18nsPartial = true; |
|
1730 | } |
|
1731 | ||
1732 | return $collBannerImageI18ns; |
|
1733 | } |
|
1734 | ||
1735 | if ($partial && $this->collBannerImageI18ns) { |
|
1736 | foreach ($this->collBannerImageI18ns as $obj) { |
|
1737 | if ($obj->isNew()) { |
|
1738 | $collBannerImageI18ns[] = $obj; |
|
1739 | } |
|
1740 | } |
|
1741 | } |
|
1742 | ||
1743 | $this->collBannerImageI18ns = $collBannerImageI18ns; |
|
1744 | $this->collBannerImageI18nsPartial = false; |
|
1745 | } |
|
1746 | } |
|
1747 | ||
1748 | return $this->collBannerImageI18ns; |
|
1749 | } |
|
1750 | ||
1751 | /** |
|
1752 | * Sets a collection of ChildBannerImageI18n objects related by a one-to-many relationship |
@@ 1432-1474 (lines=43) @@ | ||
1429 | * @return ObjectCollection|ChildBannerImage[] List of ChildBannerImage objects |
|
1430 | * @throws PropelException |
|
1431 | */ |
|
1432 | public function getBannerImages(Criteria $criteria = null, ConnectionInterface $con = null) |
|
1433 | { |
|
1434 | $partial = $this->collBannerImagesPartial && !$this->isNew(); |
|
1435 | if (null === $this->collBannerImages || null !== $criteria || $partial) { |
|
1436 | if ($this->isNew() && null === $this->collBannerImages) { |
|
1437 | // return empty collection |
|
1438 | $this->initBannerImages(); |
|
1439 | } else { |
|
1440 | $collBannerImages = ChildBannerImageQuery::create(null, $criteria) |
|
1441 | ->filterByBanners($this) |
|
1442 | ->find($con); |
|
1443 | ||
1444 | if (null !== $criteria) { |
|
1445 | if (false !== $this->collBannerImagesPartial && count($collBannerImages)) { |
|
1446 | $this->initBannerImages(false); |
|
1447 | ||
1448 | foreach ($collBannerImages as $obj) { |
|
1449 | if (false == $this->collBannerImages->contains($obj)) { |
|
1450 | $this->collBannerImages->append($obj); |
|
1451 | } |
|
1452 | } |
|
1453 | ||
1454 | $this->collBannerImagesPartial = true; |
|
1455 | } |
|
1456 | ||
1457 | return $collBannerImages; |
|
1458 | } |
|
1459 | ||
1460 | if ($partial && $this->collBannerImages) { |
|
1461 | foreach ($this->collBannerImages as $obj) { |
|
1462 | if ($obj->isNew()) { |
|
1463 | $collBannerImages[] = $obj; |
|
1464 | } |
|
1465 | } |
|
1466 | } |
|
1467 | ||
1468 | $this->collBannerImages = $collBannerImages; |
|
1469 | $this->collBannerImagesPartial = false; |
|
1470 | } |
|
1471 | } |
|
1472 | ||
1473 | return $this->collBannerImages; |
|
1474 | } |
|
1475 | ||
1476 | /** |
|
1477 | * Sets a collection of ChildBannerImage objects related by a one-to-many relationship |
|
@@ 1657-1699 (lines=43) @@ | ||
1654 | * @return ObjectCollection|ChildBannersI18n[] List of ChildBannersI18n objects |
|
1655 | * @throws PropelException |
|
1656 | */ |
|
1657 | public function getBannersI18ns(Criteria $criteria = null, ConnectionInterface $con = null) |
|
1658 | { |
|
1659 | $partial = $this->collBannersI18nsPartial && !$this->isNew(); |
|
1660 | if (null === $this->collBannersI18ns || null !== $criteria || $partial) { |
|
1661 | if ($this->isNew() && null === $this->collBannersI18ns) { |
|
1662 | // return empty collection |
|
1663 | $this->initBannersI18ns(); |
|
1664 | } else { |
|
1665 | $collBannersI18ns = ChildBannersI18nQuery::create(null, $criteria) |
|
1666 | ->filterByBanners($this) |
|
1667 | ->find($con); |
|
1668 | ||
1669 | if (null !== $criteria) { |
|
1670 | if (false !== $this->collBannersI18nsPartial && count($collBannersI18ns)) { |
|
1671 | $this->initBannersI18ns(false); |
|
1672 | ||
1673 | foreach ($collBannersI18ns as $obj) { |
|
1674 | if (false == $this->collBannersI18ns->contains($obj)) { |
|
1675 | $this->collBannersI18ns->append($obj); |
|
1676 | } |
|
1677 | } |
|
1678 | ||
1679 | $this->collBannersI18nsPartial = true; |
|
1680 | } |
|
1681 | ||
1682 | return $collBannersI18ns; |
|
1683 | } |
|
1684 | ||
1685 | if ($partial && $this->collBannersI18ns) { |
|
1686 | foreach ($this->collBannersI18ns as $obj) { |
|
1687 | if ($obj->isNew()) { |
|
1688 | $collBannersI18ns[] = $obj; |
|
1689 | } |
|
1690 | } |
|
1691 | } |
|
1692 | ||
1693 | $this->collBannersI18ns = $collBannersI18ns; |
|
1694 | $this->collBannersI18nsPartial = false; |
|
1695 | } |
|
1696 | } |
|
1697 | ||
1698 | return $this->collBannersI18ns; |
|
1699 | } |
|
1700 | ||
1701 | /** |
|
1702 | * Sets a collection of ChildBannersI18n objects related by a one-to-many relationship |