Code Duplication    Length = 15-15 lines in 2 locations

application/modules/mod_link/models/Base/PageLinkProduct.php 1 location

@@ 1061-1075 (lines=15) @@
1058
     * @return ChildPageLink The associated ChildPageLink object.
1059
     * @throws PropelException
1060
     */
1061
    public function getPageLink(ConnectionInterface $con = null)
1062
    {
1063
        if ($this->aPageLink === null && ($this->link_id !== null)) {
1064
            $this->aPageLink = ChildPageLinkQuery::create()->findPk($this->link_id, $con);
1065
            /* The following can be used additionally to
1066
                guarantee the related object contains a reference
1067
                to this object.  This level of coupling may, however, be
1068
                undesirable since it could result in an only partially populated collection
1069
                in the referenced object.
1070
                $this->aPageLink->addPageLinkProducts($this);
1071
             */
1072
        }
1073
1074
        return $this->aPageLink;
1075
    }
1076
1077
    /**
1078
     * Clears the current object, sets all attributes to their default values and removes

application/modules/mod_link/models/Base/PageLinkProducts.php 1 location

@@ 1061-1075 (lines=15) @@
1058
     * @return ChildPageLink The associated ChildPageLink object.
1059
     * @throws PropelException
1060
     */
1061
    public function getPageLink(ConnectionInterface $con = null)
1062
    {
1063
        if ($this->aPageLink === null && ($this->link_id !== null)) {
1064
            $this->aPageLink = ChildPageLinkQuery::create()->findPk($this->link_id, $con);
1065
            /* The following can be used additionally to
1066
                guarantee the related object contains a reference
1067
                to this object.  This level of coupling may, however, be
1068
                undesirable since it could result in an only partially populated collection
1069
                in the referenced object.
1070
                $this->aPageLink->addPageLinkProductss($this);
1071
             */
1072
        }
1073
1074
        return $this->aPageLink;
1075
    }
1076
1077
    /**
1078
     * Clears the current object, sets all attributes to their default values and removes