@@ 1615-1629 (lines=15) @@ | ||
1612 | * @return ChildBanners The associated ChildBanners object. |
|
1613 | * @throws PropelException |
|
1614 | */ |
|
1615 | public function getBanners(ConnectionInterface $con = null) |
|
1616 | { |
|
1617 | if ($this->aBanners === null && ($this->banner_id !== null)) { |
|
1618 | $this->aBanners = ChildBannersQuery::create()->findPk($this->banner_id, $con); |
|
1619 | /* The following can be used additionally to |
|
1620 | guarantee the related object contains a reference |
|
1621 | to this object. This level of coupling may, however, be |
|
1622 | undesirable since it could result in an only partially populated collection |
|
1623 | in the referenced object. |
|
1624 | $this->aBanners->addBannerImages($this); |
|
1625 | */ |
|
1626 | } |
|
1627 | ||
1628 | return $this->aBanners; |
|
1629 | } |
|
1630 | ||
1631 | ||
1632 | /** |
@@ 1138-1152 (lines=15) @@ | ||
1135 | * @return ChildBanners The associated ChildBanners object. |
|
1136 | * @throws PropelException |
|
1137 | */ |
|
1138 | public function getBanners(ConnectionInterface $con = null) |
|
1139 | { |
|
1140 | if ($this->aBanners === null && ($this->id !== null)) { |
|
1141 | $this->aBanners = ChildBannersQuery::create()->findPk($this->id, $con); |
|
1142 | /* The following can be used additionally to |
|
1143 | guarantee the related object contains a reference |
|
1144 | to this object. This level of coupling may, however, be |
|
1145 | undesirable since it could result in an only partially populated collection |
|
1146 | in the referenced object. |
|
1147 | $this->aBanners->addBannersI18ns($this); |
|
1148 | */ |
|
1149 | } |
|
1150 | ||
1151 | return $this->aBanners; |
|
1152 | } |
|
1153 | ||
1154 | /** |
|
1155 | * Clears the current object, sets all attributes to their default values and removes |