| @@ 1273-1315 (lines=43) @@ | ||
| 1270 | * @return ObjectCollection|ChildSubscription[] List of ChildSubscription objects |
|
| 1271 | * @throws PropelException |
|
| 1272 | */ |
|
| 1273 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1274 | { |
|
| 1275 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 1276 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1277 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 1278 | // return empty collection |
|
| 1279 | $this->initSubscriptions(); |
|
| 1280 | } else { |
|
| 1281 | $collSubscriptions = ChildSubscriptionQuery::create(null, $criteria) |
|
| 1282 | ->filterByChannel($this) |
|
| 1283 | ->find($con); |
|
| 1284 | ||
| 1285 | if (null !== $criteria) { |
|
| 1286 | if (false !== $this->collSubscriptionsPartial && count($collSubscriptions)) { |
|
| 1287 | $this->initSubscriptions(false); |
|
| 1288 | ||
| 1289 | foreach ($collSubscriptions as $obj) { |
|
| 1290 | if (false == $this->collSubscriptions->contains($obj)) { |
|
| 1291 | $this->collSubscriptions->append($obj); |
|
| 1292 | } |
|
| 1293 | } |
|
| 1294 | ||
| 1295 | $this->collSubscriptionsPartial = true; |
|
| 1296 | } |
|
| 1297 | ||
| 1298 | return $collSubscriptions; |
|
| 1299 | } |
|
| 1300 | ||
| 1301 | if ($partial && $this->collSubscriptions) { |
|
| 1302 | foreach ($this->collSubscriptions as $obj) { |
|
| 1303 | if ($obj->isNew()) { |
|
| 1304 | $collSubscriptions[] = $obj; |
|
| 1305 | } |
|
| 1306 | } |
|
| 1307 | } |
|
| 1308 | ||
| 1309 | $this->collSubscriptions = $collSubscriptions; |
|
| 1310 | $this->collSubscriptionsPartial = false; |
|
| 1311 | } |
|
| 1312 | } |
|
| 1313 | ||
| 1314 | return $this->collSubscriptions; |
|
| 1315 | } |
|
| 1316 | ||
| 1317 | /** |
|
| 1318 | * Sets a collection of ChildSubscription objects related by a one-to-many relationship |
|
| @@ 1333-1375 (lines=43) @@ | ||
| 1330 | * @return ObjectCollection|ChildConnection[] List of ChildConnection objects |
|
| 1331 | * @throws PropelException |
|
| 1332 | */ |
|
| 1333 | public function getConnections(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1334 | { |
|
| 1335 | $partial = $this->collConnectionsPartial && !$this->isNew(); |
|
| 1336 | if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1337 | if ($this->isNew() && null === $this->collConnections) { |
|
| 1338 | // return empty collection |
|
| 1339 | $this->initConnections(); |
|
| 1340 | } else { |
|
| 1341 | $collConnections = ChildConnectionQuery::create(null, $criteria) |
|
| 1342 | ->filterByUser($this) |
|
| 1343 | ->find($con); |
|
| 1344 | ||
| 1345 | if (null !== $criteria) { |
|
| 1346 | if (false !== $this->collConnectionsPartial && count($collConnections)) { |
|
| 1347 | $this->initConnections(false); |
|
| 1348 | ||
| 1349 | foreach ($collConnections as $obj) { |
|
| 1350 | if (false == $this->collConnections->contains($obj)) { |
|
| 1351 | $this->collConnections->append($obj); |
|
| 1352 | } |
|
| 1353 | } |
|
| 1354 | ||
| 1355 | $this->collConnectionsPartial = true; |
|
| 1356 | } |
|
| 1357 | ||
| 1358 | return $collConnections; |
|
| 1359 | } |
|
| 1360 | ||
| 1361 | if ($partial && $this->collConnections) { |
|
| 1362 | foreach ($this->collConnections as $obj) { |
|
| 1363 | if ($obj->isNew()) { |
|
| 1364 | $collConnections[] = $obj; |
|
| 1365 | } |
|
| 1366 | } |
|
| 1367 | } |
|
| 1368 | ||
| 1369 | $this->collConnections = $collConnections; |
|
| 1370 | $this->collConnectionsPartial = false; |
|
| 1371 | } |
|
| 1372 | } |
|
| 1373 | ||
| 1374 | return $this->collConnections; |
|
| 1375 | } |
|
| 1376 | ||
| 1377 | /** |
|
| 1378 | * Sets a collection of ChildConnection objects related by a one-to-many relationship |
|
| @@ 1583-1625 (lines=43) @@ | ||
| 1580 | * @return ObjectCollection|ChildSubscription[] List of ChildSubscription objects |
|
| 1581 | * @throws PropelException |
|
| 1582 | */ |
|
| 1583 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1584 | { |
|
| 1585 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 1586 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1587 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 1588 | // return empty collection |
|
| 1589 | $this->initSubscriptions(); |
|
| 1590 | } else { |
|
| 1591 | $collSubscriptions = ChildSubscriptionQuery::create(null, $criteria) |
|
| 1592 | ->filterByUser($this) |
|
| 1593 | ->find($con); |
|
| 1594 | ||
| 1595 | if (null !== $criteria) { |
|
| 1596 | if (false !== $this->collSubscriptionsPartial && count($collSubscriptions)) { |
|
| 1597 | $this->initSubscriptions(false); |
|
| 1598 | ||
| 1599 | foreach ($collSubscriptions as $obj) { |
|
| 1600 | if (false == $this->collSubscriptions->contains($obj)) { |
|
| 1601 | $this->collSubscriptions->append($obj); |
|
| 1602 | } |
|
| 1603 | } |
|
| 1604 | ||
| 1605 | $this->collSubscriptionsPartial = true; |
|
| 1606 | } |
|
| 1607 | ||
| 1608 | return $collSubscriptions; |
|
| 1609 | } |
|
| 1610 | ||
| 1611 | if ($partial && $this->collSubscriptions) { |
|
| 1612 | foreach ($this->collSubscriptions as $obj) { |
|
| 1613 | if ($obj->isNew()) { |
|
| 1614 | $collSubscriptions[] = $obj; |
|
| 1615 | } |
|
| 1616 | } |
|
| 1617 | } |
|
| 1618 | ||
| 1619 | $this->collSubscriptions = $collSubscriptions; |
|
| 1620 | $this->collSubscriptionsPartial = false; |
|
| 1621 | } |
|
| 1622 | } |
|
| 1623 | ||
| 1624 | return $this->collSubscriptions; |
|
| 1625 | } |
|
| 1626 | ||
| 1627 | /** |
|
| 1628 | * Sets a collection of ChildSubscription objects related by a one-to-many relationship |
|
| @@ 1519-1561 (lines=43) @@ | ||
| 1516 | * @return ObjectCollection|ChildSubscription[] List of ChildSubscription objects |
|
| 1517 | * @throws PropelException |
|
| 1518 | */ |
|
| 1519 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1520 | { |
|
| 1521 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 1522 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 1523 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 1524 | // return empty collection |
|
| 1525 | $this->initSubscriptions(); |
|
| 1526 | } else { |
|
| 1527 | $collSubscriptions = ChildSubscriptionQuery::create(null, $criteria) |
|
| 1528 | ->filterByInput($this) |
|
| 1529 | ->find($con); |
|
| 1530 | ||
| 1531 | if (null !== $criteria) { |
|
| 1532 | if (false !== $this->collSubscriptionsPartial && count($collSubscriptions)) { |
|
| 1533 | $this->initSubscriptions(false); |
|
| 1534 | ||
| 1535 | foreach ($collSubscriptions as $obj) { |
|
| 1536 | if (false == $this->collSubscriptions->contains($obj)) { |
|
| 1537 | $this->collSubscriptions->append($obj); |
|
| 1538 | } |
|
| 1539 | } |
|
| 1540 | ||
| 1541 | $this->collSubscriptionsPartial = true; |
|
| 1542 | } |
|
| 1543 | ||
| 1544 | return $collSubscriptions; |
|
| 1545 | } |
|
| 1546 | ||
| 1547 | if ($partial && $this->collSubscriptions) { |
|
| 1548 | foreach ($this->collSubscriptions as $obj) { |
|
| 1549 | if ($obj->isNew()) { |
|
| 1550 | $collSubscriptions[] = $obj; |
|
| 1551 | } |
|
| 1552 | } |
|
| 1553 | } |
|
| 1554 | ||
| 1555 | $this->collSubscriptions = $collSubscriptions; |
|
| 1556 | $this->collSubscriptionsPartial = false; |
|
| 1557 | } |
|
| 1558 | } |
|
| 1559 | ||
| 1560 | return $this->collSubscriptions; |
|
| 1561 | } |
|
| 1562 | ||
| 1563 | /** |
|
| 1564 | * Sets a collection of ChildSubscription objects related by a one-to-many relationship |
|
| @@ 1281-1323 (lines=43) @@ | ||
| 1278 | * @return ObjectCollection|ChildUser[] List of ChildUser objects |
|
| 1279 | * @throws PropelException |
|
| 1280 | */ |
|
| 1281 | public function getUsers(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1282 | { |
|
| 1283 | $partial = $this->collUsersPartial && !$this->isNew(); |
|
| 1284 | if (null === $this->collUsers || null !== $criteria || $partial) { |
|
| 1285 | if ($this->isNew() && null === $this->collUsers) { |
|
| 1286 | // return empty collection |
|
| 1287 | $this->initUsers(); |
|
| 1288 | } else { |
|
| 1289 | $collUsers = ChildUserQuery::create(null, $criteria) |
|
| 1290 | ->filterByInstance($this) |
|
| 1291 | ->find($con); |
|
| 1292 | ||
| 1293 | if (null !== $criteria) { |
|
| 1294 | if (false !== $this->collUsersPartial && count($collUsers)) { |
|
| 1295 | $this->initUsers(false); |
|
| 1296 | ||
| 1297 | foreach ($collUsers as $obj) { |
|
| 1298 | if (false == $this->collUsers->contains($obj)) { |
|
| 1299 | $this->collUsers->append($obj); |
|
| 1300 | } |
|
| 1301 | } |
|
| 1302 | ||
| 1303 | $this->collUsersPartial = true; |
|
| 1304 | } |
|
| 1305 | ||
| 1306 | return $collUsers; |
|
| 1307 | } |
|
| 1308 | ||
| 1309 | if ($partial && $this->collUsers) { |
|
| 1310 | foreach ($this->collUsers as $obj) { |
|
| 1311 | if ($obj->isNew()) { |
|
| 1312 | $collUsers[] = $obj; |
|
| 1313 | } |
|
| 1314 | } |
|
| 1315 | } |
|
| 1316 | ||
| 1317 | $this->collUsers = $collUsers; |
|
| 1318 | $this->collUsersPartial = false; |
|
| 1319 | } |
|
| 1320 | } |
|
| 1321 | ||
| 1322 | return $this->collUsers; |
|
| 1323 | } |
|
| 1324 | ||
| 1325 | /** |
|
| 1326 | * Sets a collection of ChildUser objects related by a one-to-many relationship |
|
| @@ 1506-1548 (lines=43) @@ | ||
| 1503 | * @return ObjectCollection|ChildConnection[] List of ChildConnection objects |
|
| 1504 | * @throws PropelException |
|
| 1505 | */ |
|
| 1506 | public function getConnections(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1507 | { |
|
| 1508 | $partial = $this->collConnectionsPartial && !$this->isNew(); |
|
| 1509 | if (null === $this->collConnections || null !== $criteria || $partial) { |
|
| 1510 | if ($this->isNew() && null === $this->collConnections) { |
|
| 1511 | // return empty collection |
|
| 1512 | $this->initConnections(); |
|
| 1513 | } else { |
|
| 1514 | $collConnections = ChildConnectionQuery::create(null, $criteria) |
|
| 1515 | ->filterByInstance($this) |
|
| 1516 | ->find($con); |
|
| 1517 | ||
| 1518 | if (null !== $criteria) { |
|
| 1519 | if (false !== $this->collConnectionsPartial && count($collConnections)) { |
|
| 1520 | $this->initConnections(false); |
|
| 1521 | ||
| 1522 | foreach ($collConnections as $obj) { |
|
| 1523 | if (false == $this->collConnections->contains($obj)) { |
|
| 1524 | $this->collConnections->append($obj); |
|
| 1525 | } |
|
| 1526 | } |
|
| 1527 | ||
| 1528 | $this->collConnectionsPartial = true; |
|
| 1529 | } |
|
| 1530 | ||
| 1531 | return $collConnections; |
|
| 1532 | } |
|
| 1533 | ||
| 1534 | if ($partial && $this->collConnections) { |
|
| 1535 | foreach ($this->collConnections as $obj) { |
|
| 1536 | if ($obj->isNew()) { |
|
| 1537 | $collConnections[] = $obj; |
|
| 1538 | } |
|
| 1539 | } |
|
| 1540 | } |
|
| 1541 | ||
| 1542 | $this->collConnections = $collConnections; |
|
| 1543 | $this->collConnectionsPartial = false; |
|
| 1544 | } |
|
| 1545 | } |
|
| 1546 | ||
| 1547 | return $this->collConnections; |
|
| 1548 | } |
|
| 1549 | ||
| 1550 | /** |
|
| 1551 | * Sets a collection of ChildConnection objects related by a one-to-many relationship |
|
| @@ 1756-1798 (lines=43) @@ | ||
| 1753 | * @return ObjectCollection|ChildInput[] List of ChildInput objects |
|
| 1754 | * @throws PropelException |
|
| 1755 | */ |
|
| 1756 | public function getInputs(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1757 | { |
|
| 1758 | $partial = $this->collInputsPartial && !$this->isNew(); |
|
| 1759 | if (null === $this->collInputs || null !== $criteria || $partial) { |
|
| 1760 | if ($this->isNew() && null === $this->collInputs) { |
|
| 1761 | // return empty collection |
|
| 1762 | $this->initInputs(); |
|
| 1763 | } else { |
|
| 1764 | $collInputs = ChildInputQuery::create(null, $criteria) |
|
| 1765 | ->filterByInstance($this) |
|
| 1766 | ->find($con); |
|
| 1767 | ||
| 1768 | if (null !== $criteria) { |
|
| 1769 | if (false !== $this->collInputsPartial && count($collInputs)) { |
|
| 1770 | $this->initInputs(false); |
|
| 1771 | ||
| 1772 | foreach ($collInputs as $obj) { |
|
| 1773 | if (false == $this->collInputs->contains($obj)) { |
|
| 1774 | $this->collInputs->append($obj); |
|
| 1775 | } |
|
| 1776 | } |
|
| 1777 | ||
| 1778 | $this->collInputsPartial = true; |
|
| 1779 | } |
|
| 1780 | ||
| 1781 | return $collInputs; |
|
| 1782 | } |
|
| 1783 | ||
| 1784 | if ($partial && $this->collInputs) { |
|
| 1785 | foreach ($this->collInputs as $obj) { |
|
| 1786 | if ($obj->isNew()) { |
|
| 1787 | $collInputs[] = $obj; |
|
| 1788 | } |
|
| 1789 | } |
|
| 1790 | } |
|
| 1791 | ||
| 1792 | $this->collInputs = $collInputs; |
|
| 1793 | $this->collInputsPartial = false; |
|
| 1794 | } |
|
| 1795 | } |
|
| 1796 | ||
| 1797 | return $this->collInputs; |
|
| 1798 | } |
|
| 1799 | ||
| 1800 | /** |
|
| 1801 | * Sets a collection of ChildInput objects related by a one-to-many relationship |
|
| @@ 1981-2023 (lines=43) @@ | ||
| 1978 | * @return ObjectCollection|ChildChannel[] List of ChildChannel objects |
|
| 1979 | * @throws PropelException |
|
| 1980 | */ |
|
| 1981 | public function getChannels(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 1982 | { |
|
| 1983 | $partial = $this->collChannelsPartial && !$this->isNew(); |
|
| 1984 | if (null === $this->collChannels || null !== $criteria || $partial) { |
|
| 1985 | if ($this->isNew() && null === $this->collChannels) { |
|
| 1986 | // return empty collection |
|
| 1987 | $this->initChannels(); |
|
| 1988 | } else { |
|
| 1989 | $collChannels = ChildChannelQuery::create(null, $criteria) |
|
| 1990 | ->filterByInstance($this) |
|
| 1991 | ->find($con); |
|
| 1992 | ||
| 1993 | if (null !== $criteria) { |
|
| 1994 | if (false !== $this->collChannelsPartial && count($collChannels)) { |
|
| 1995 | $this->initChannels(false); |
|
| 1996 | ||
| 1997 | foreach ($collChannels as $obj) { |
|
| 1998 | if (false == $this->collChannels->contains($obj)) { |
|
| 1999 | $this->collChannels->append($obj); |
|
| 2000 | } |
|
| 2001 | } |
|
| 2002 | ||
| 2003 | $this->collChannelsPartial = true; |
|
| 2004 | } |
|
| 2005 | ||
| 2006 | return $collChannels; |
|
| 2007 | } |
|
| 2008 | ||
| 2009 | if ($partial && $this->collChannels) { |
|
| 2010 | foreach ($this->collChannels as $obj) { |
|
| 2011 | if ($obj->isNew()) { |
|
| 2012 | $collChannels[] = $obj; |
|
| 2013 | } |
|
| 2014 | } |
|
| 2015 | } |
|
| 2016 | ||
| 2017 | $this->collChannels = $collChannels; |
|
| 2018 | $this->collChannelsPartial = false; |
|
| 2019 | } |
|
| 2020 | } |
|
| 2021 | ||
| 2022 | return $this->collChannels; |
|
| 2023 | } |
|
| 2024 | ||
| 2025 | /** |
|
| 2026 | * Sets a collection of ChildChannel objects related by a one-to-many relationship |
|
| @@ 2206-2248 (lines=43) @@ | ||
| 2203 | * @return ObjectCollection|ChildSubscription[] List of ChildSubscription objects |
|
| 2204 | * @throws PropelException |
|
| 2205 | */ |
|
| 2206 | public function getSubscriptions(Criteria $criteria = null, ConnectionInterface $con = null) |
|
| 2207 | { |
|
| 2208 | $partial = $this->collSubscriptionsPartial && !$this->isNew(); |
|
| 2209 | if (null === $this->collSubscriptions || null !== $criteria || $partial) { |
|
| 2210 | if ($this->isNew() && null === $this->collSubscriptions) { |
|
| 2211 | // return empty collection |
|
| 2212 | $this->initSubscriptions(); |
|
| 2213 | } else { |
|
| 2214 | $collSubscriptions = ChildSubscriptionQuery::create(null, $criteria) |
|
| 2215 | ->filterByInstance($this) |
|
| 2216 | ->find($con); |
|
| 2217 | ||
| 2218 | if (null !== $criteria) { |
|
| 2219 | if (false !== $this->collSubscriptionsPartial && count($collSubscriptions)) { |
|
| 2220 | $this->initSubscriptions(false); |
|
| 2221 | ||
| 2222 | foreach ($collSubscriptions as $obj) { |
|
| 2223 | if (false == $this->collSubscriptions->contains($obj)) { |
|
| 2224 | $this->collSubscriptions->append($obj); |
|
| 2225 | } |
|
| 2226 | } |
|
| 2227 | ||
| 2228 | $this->collSubscriptionsPartial = true; |
|
| 2229 | } |
|
| 2230 | ||
| 2231 | return $collSubscriptions; |
|
| 2232 | } |
|
| 2233 | ||
| 2234 | if ($partial && $this->collSubscriptions) { |
|
| 2235 | foreach ($this->collSubscriptions as $obj) { |
|
| 2236 | if ($obj->isNew()) { |
|
| 2237 | $collSubscriptions[] = $obj; |
|
| 2238 | } |
|
| 2239 | } |
|
| 2240 | } |
|
| 2241 | ||
| 2242 | $this->collSubscriptions = $collSubscriptions; |
|
| 2243 | $this->collSubscriptionsPartial = false; |
|
| 2244 | } |
|
| 2245 | } |
|
| 2246 | ||
| 2247 | return $this->collSubscriptions; |
|
| 2248 | } |
|
| 2249 | ||
| 2250 | /** |
|
| 2251 | * Sets a collection of ChildSubscription objects related by a one-to-many relationship |
|