Code Duplication    Length = 15-15 lines in 2 locations

src/cli/Database/Base/Connection.php 1 location

@@ 1400-1414 (lines=15) @@
1397
     * @return ChildUser The associated ChildUser object.
1398
     * @throws PropelException
1399
     */
1400
    public function getUser(ConnectionInterface $con = null)
1401
    {
1402
        if ($this->aUser === null && ($this->user_id !== null)) {
1403
            $this->aUser = ChildUserQuery::create()->findPk($this->user_id, $con);
1404
            /* The following can be used additionally to
1405
                guarantee the related object contains a reference
1406
                to this object.  This level of coupling may, however, be
1407
                undesirable since it could result in an only partially populated collection
1408
                in the referenced object.
1409
                $this->aUser->addConnections($this);
1410
             */
1411
        }
1412
1413
        return $this->aUser;
1414
    }
1415
1416
    /**
1417
     * Clears the current object, sets all attributes to their default values and removes

src/cli/Database/Base/Subscription.php 1 location

@@ 1631-1645 (lines=15) @@
1628
     * @return ChildUser The associated ChildUser object.
1629
     * @throws PropelException
1630
     */
1631
    public function getUser(ConnectionInterface $con = null)
1632
    {
1633
        if ($this->aUser === null && ($this->user_id !== null)) {
1634
            $this->aUser = ChildUserQuery::create()->findPk($this->user_id, $con);
1635
            /* The following can be used additionally to
1636
                guarantee the related object contains a reference
1637
                to this object.  This level of coupling may, however, be
1638
                undesirable since it could result in an only partially populated collection
1639
                in the referenced object.
1640
                $this->aUser->addSubscriptions($this);
1641
             */
1642
        }
1643
1644
        return $this->aUser;
1645
    }
1646
1647
    /**
1648
     * Declares an association between this object and a ChildChannel object.