| @@ 1359-1382 (lines=24) @@ | ||
| 1356 | * @return int Count of related Subscription objects. |
|
| 1357 | * @throws PropelException |
|
| 1358 | */ |
|
| 1359 | public function countSubscriptions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1360 | { |
|
| 1361 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 1362 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1363 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 1364 | return 0; |
|
| 1365 | } |
|
| 1366 | ||
| 1367 | if ($partial && !$criteria) { |
|
| 1368 | return count($this->getSubscriptions()); |
|
| 1369 | } |
|
| 1370 | ||
| 1371 | $query = ChildSubscriptionQuery::create(null, $criteria); |
|
| 1372 | if ($distinct) { |
|
| 1373 | $query->distinct(); |
|
| 1374 | } |
|
| 1375 | ||
| 1376 | return $query |
|
| 1377 | ->filterByChannel($this) |
|
| 1378 | ->count($con); |
|
| 1379 | } |
|
| 1380 | ||
| 1381 | return count($this->collSubscriptions); |
|
| 1382 | } |
|
| 1383 | ||
| 1384 | /** |
|
| 1385 | * Method called to associate a ChildSubscription object to this object |
|
| @@ 1309-1332 (lines=24) @@ | ||
| 1306 | * @return int Count of related User objects. |
|
| 1307 | * @throws PropelException |
|
| 1308 | */ |
|
| 1309 | public function countUsers(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1310 | { |
|
| 1311 | $partial = $this->collUsersPartial && !$this->isNew(); |
|
| 1312 | if (null === $this->collUsers || null !== $criteria || $partial) { |
|
| 1313 | if ($this->isNew() && null === $this->collUsers) { |
|
| 1314 | return 0; |
|
| 1315 | } |
|
| 1316 | ||
| 1317 | if ($partial && !$criteria) { |
|
| 1318 | return count($this->getUsers()); |
|
| 1319 | } |
|
| 1320 | ||
| 1321 | $query = ChildUserQuery::create(null, $criteria); |
|
| 1322 | if ($distinct) { |
|
| 1323 | $query->distinct(); |
|
| 1324 | } |
|
| 1325 | ||
| 1326 | return $query |
|
| 1327 | ->filterByInstance($this) |
|
| 1328 | ->count($con); |
|
| 1329 | } |
|
| 1330 | ||
| 1331 | return count($this->collUsers); |
|
| 1332 | } |
|
| 1333 | ||
| 1334 | /** |
|
| 1335 | * Method called to associate a ChildUser object to this object |
|
| @@ 1534-1557 (lines=24) @@ | ||
| 1531 | * @return int Count of related Connection objects. |
|
| 1532 | * @throws PropelException |
|
| 1533 | */ |
|
| 1534 | public function countConnections(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1535 | { |
|
| 1536 | $partial = $this->collConnectionsPartial && !$this->isNew(); |
|
| 1537 | if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1538 | if ($this->isNew() && null === $this->collConnections) { |
|
| 1539 | return 0; |
|
| 1540 | } |
|
| 1541 | ||
| 1542 | if ($partial && !$criteria) { |
|
| 1543 | return count($this->getConnections()); |
|
| 1544 | } |
|
| 1545 | ||
| 1546 | $query = ChildConnectionQuery::create(null, $criteria); |
|
| 1547 | if ($distinct) { |
|
| 1548 | $query->distinct(); |
|
| 1549 | } |
|
| 1550 | ||
| 1551 | return $query |
|
| 1552 | ->filterByInstance($this) |
|
| 1553 | ->count($con); |
|
| 1554 | } |
|
| 1555 | ||
| 1556 | return count($this->collConnections); |
|
| 1557 | } |
|
| 1558 | ||
| 1559 | /** |
|
| 1560 | * Method called to associate a ChildConnection object to this object |
|
| @@ 1784-1807 (lines=24) @@ | ||
| 1781 | * @return int Count of related Channel objects. |
|
| 1782 | * @throws PropelException |
|
| 1783 | */ |
|
| 1784 | public function countChannels(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1785 | { |
|
| 1786 | $partial = $this->collChannelsPartial && !$this->isNew(); |
|
| 1787 | if (null === $this->collChannels || null !== $criteria || $partial) { |
|
| 1788 | if ($this->isNew() && null === $this->collChannels) { |
|
| 1789 | return 0; |
|
| 1790 | } |
|
| 1791 | ||
| 1792 | if ($partial && !$criteria) { |
|
| 1793 | return count($this->getChannels()); |
|
| 1794 | } |
|
| 1795 | ||
| 1796 | $query = ChildChannelQuery::create(null, $criteria); |
|
| 1797 | if ($distinct) { |
|
| 1798 | $query->distinct(); |
|
| 1799 | } |
|
| 1800 | ||
| 1801 | return $query |
|
| 1802 | ->filterByInstance($this) |
|
| 1803 | ->count($con); |
|
| 1804 | } |
|
| 1805 | ||
| 1806 | return count($this->collChannels); |
|
| 1807 | } |
|
| 1808 | ||
| 1809 | /** |
|
| 1810 | * Method called to associate a ChildChannel object to this object |
|
| @@ 2009-2032 (lines=24) @@ | ||
| 2006 | * @return int Count of related Subscription objects. |
|
| 2007 | * @throws PropelException |
|
| 2008 | */ |
|
| 2009 | public function countSubscriptions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 2010 | { |
|
| 2011 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 2012 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 2013 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 2014 | return 0; |
|
| 2015 | } |
|
| 2016 | ||
| 2017 | if ($partial && !$criteria) { |
|
| 2018 | return count($this->getSubscriptions()); |
|
| 2019 | } |
|
| 2020 | ||
| 2021 | $query = ChildSubscriptionQuery::create(null, $criteria); |
|
| 2022 | if ($distinct) { |
|
| 2023 | $query->distinct(); |
|
| 2024 | } |
|
| 2025 | ||
| 2026 | return $query |
|
| 2027 | ->filterByInstance($this) |
|
| 2028 | ->count($con); |
|
| 2029 | } |
|
| 2030 | ||
| 2031 | return count($this->collSubscriptions); |
|
| 2032 | } |
|
| 2033 | ||
| 2034 | /** |
|
| 2035 | * Method called to associate a ChildSubscription object to this object |
|
| @@ 1419-1442 (lines=24) @@ | ||
| 1416 | * @return int Count of related Connection objects. |
|
| 1417 | * @throws PropelException |
|
| 1418 | */ |
|
| 1419 | public function countConnections(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1420 | { |
|
| 1421 | $partial = $this->collConnectionsPartial && !$this->isNew(); |
|
| 1422 | if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1423 | if ($this->isNew() && null === $this->collConnections) { |
|
| 1424 | return 0; |
|
| 1425 | } |
|
| 1426 | ||
| 1427 | if ($partial && !$criteria) { |
|
| 1428 | return count($this->getConnections()); |
|
| 1429 | } |
|
| 1430 | ||
| 1431 | $query = ChildConnectionQuery::create(null, $criteria); |
|
| 1432 | if ($distinct) { |
|
| 1433 | $query->distinct(); |
|
| 1434 | } |
|
| 1435 | ||
| 1436 | return $query |
|
| 1437 | ->filterByUser($this) |
|
| 1438 | ->count($con); |
|
| 1439 | } |
|
| 1440 | ||
| 1441 | return count($this->collConnections); |
|
| 1442 | } |
|
| 1443 | ||
| 1444 | /** |
|
| 1445 | * Method called to associate a ChildConnection object to this object |
|
| @@ 1669-1692 (lines=24) @@ | ||
| 1666 | * @return int Count of related Subscription objects. |
|
| 1667 | * @throws PropelException |
|
| 1668 | */ |
|
| 1669 | public function countSubscriptions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) |
|
| 1670 | { |
|
| 1671 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 1672 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1673 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 1674 | return 0; |
|
| 1675 | } |
|
| 1676 | ||
| 1677 | if ($partial && !$criteria) { |
|
| 1678 | return count($this->getSubscriptions()); |
|
| 1679 | } |
|
| 1680 | ||
| 1681 | $query = ChildSubscriptionQuery::create(null, $criteria); |
|
| 1682 | if ($distinct) { |
|
| 1683 | $query->distinct(); |
|
| 1684 | } |
|
| 1685 | ||
| 1686 | return $query |
|
| 1687 | ->filterByUser($this) |
|
| 1688 | ->count($con); |
|
| 1689 | } |
|
| 1690 | ||
| 1691 | return count($this->collSubscriptions); |
|
| 1692 | } |
|
| 1693 | ||
| 1694 | /** |
|
| 1695 | * Method called to associate a ChildSubscription object to this object |
|