| @@ 1796-1819 (lines=24) @@ | ||
| 1793 | * @return int Count of related BannerImageI18n objects. |
|
| 1794 | * @throws PropelException |
|
| 1795 | */ |
|
| 1796 | public function countBannerImageI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1797 | { |
|
| 1798 | $partial = $this->collBannerImageI18nsPartial && !$this->isNew(); |
|
| 1799 | if (null === $this->collBannerImageI18ns || null !== $criteria || $partial) { |
|
| 1800 | if ($this->isNew() && null === $this->collBannerImageI18ns) { |
|
| 1801 | return 0; |
|
| 1802 | } |
|
| 1803 | ||
| 1804 | if ($partial && !$criteria) { |
|
| 1805 | return count($this->getBannerImageI18ns()); |
|
| 1806 | } |
|
| 1807 | ||
| 1808 | $query = ChildBannerImageI18nQuery::create(null, $criteria); |
|
| 1809 | if ($distinct) { |
|
| 1810 | $query->distinct(); |
|
| 1811 | } |
|
| 1812 | ||
| 1813 | return $query |
|
| 1814 | ->filterByBannerImage($this) |
|
| 1815 | ->count($con); |
|
| 1816 | } |
|
| 1817 | ||
| 1818 | return count($this->collBannerImageI18ns); |
|
| 1819 | } |
|
| 1820 | ||
| 1821 | /** |
|
| 1822 | * Method called to associate a ChildBannerImageI18n object to this object |
|
| @@ 1518-1541 (lines=24) @@ | ||
| 1515 | * @return int Count of related BannerImage objects. |
|
| 1516 | * @throws PropelException |
|
| 1517 | */ |
|
| 1518 | public function countBannerImages(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1519 | { |
|
| 1520 | $partial = $this->collBannerImagesPartial && !$this->isNew(); |
|
| 1521 | if (null === $this->collBannerImages || null !== $criteria || $partial) { |
|
| 1522 | if ($this->isNew() && null === $this->collBannerImages) { |
|
| 1523 | return 0; |
|
| 1524 | } |
|
| 1525 | ||
| 1526 | if ($partial && !$criteria) { |
|
| 1527 | return count($this->getBannerImages()); |
|
| 1528 | } |
|
| 1529 | ||
| 1530 | $query = ChildBannerImageQuery::create(null, $criteria); |
|
| 1531 | if ($distinct) { |
|
| 1532 | $query->distinct(); |
|
| 1533 | } |
|
| 1534 | ||
| 1535 | return $query |
|
| 1536 | ->filterByBanners($this) |
|
| 1537 | ->count($con); |
|
| 1538 | } |
|
| 1539 | ||
| 1540 | return count($this->collBannerImages); |
|
| 1541 | } |
|
| 1542 | ||
| 1543 | /** |
|
| 1544 | * Method called to associate a ChildBannerImage object to this object |
|
| @@ 1746-1769 (lines=24) @@ | ||
| 1743 | * @return int Count of related BannersI18n objects. |
|
| 1744 | * @throws PropelException |
|
| 1745 | */ |
|
| 1746 | public function countBannersI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1747 | { |
|
| 1748 | $partial = $this->collBannersI18nsPartial && !$this->isNew(); |
|
| 1749 | if (null === $this->collBannersI18ns || null !== $criteria || $partial) { |
|
| 1750 | if ($this->isNew() && null === $this->collBannersI18ns) { |
|
| 1751 | return 0; |
|
| 1752 | } |
|
| 1753 | ||
| 1754 | if ($partial && !$criteria) { |
|
| 1755 | return count($this->getBannersI18ns()); |
|
| 1756 | } |
|
| 1757 | ||
| 1758 | $query = ChildBannersI18nQuery::create(null, $criteria); |
|
| 1759 | if ($distinct) { |
|
| 1760 | $query->distinct(); |
|
| 1761 | } |
|
| 1762 | ||
| 1763 | return $query |
|
| 1764 | ->filterByBanners($this) |
|
| 1765 | ->count($con); |
|
| 1766 | } |
|
| 1767 | ||
| 1768 | return count($this->collBannersI18ns); |
|
| 1769 | } |
|
| 1770 | ||
| 1771 | /** |
|
| 1772 | * Method called to associate a ChildBannersI18n object to this object |
|