Code Duplication    Length = 15-15 lines in 4 locations

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

@@ 1181-1195 (lines=15) @@
1178
     * @return ChildInstance The associated ChildInstance object.
1179
     * @throws PropelException
1180
     */
1181
    public function getInstance(ConnectionInterface $con = null)
1182
    {
1183
        if ($this->aInstance === null && (($this->instance_name !== "" && $this->instance_name !== null))) {
1184
            $this->aInstance = ChildInstanceQuery::create()->findPk($this->instance_name, $con);
1185
            /* The following can be used additionally to
1186
                guarantee the related object contains a reference
1187
                to this object.  This level of coupling may, however, be
1188
                undesirable since it could result in an only partially populated collection
1189
                in the referenced object.
1190
                $this->aInstance->addChannels($this);
1191
             */
1192
        }
1193
1194
        return $this->aInstance;
1195
    }
1196
1197
1198
    /**

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

@@ 1349-1363 (lines=15) @@
1346
     * @return ChildInstance The associated ChildInstance object.
1347
     * @throws PropelException
1348
     */
1349
    public function getInstance(ConnectionInterface $con = null)
1350
    {
1351
        if ($this->aInstance === null && (($this->instance_name !== "" && $this->instance_name !== null))) {
1352
            $this->aInstance = ChildInstanceQuery::create()->findPk($this->instance_name, $con);
1353
            /* The following can be used additionally to
1354
                guarantee the related object contains a reference
1355
                to this object.  This level of coupling may, however, be
1356
                undesirable since it could result in an only partially populated collection
1357
                in the referenced object.
1358
                $this->aInstance->addConnections($this);
1359
             */
1360
        }
1361
1362
        return $this->aInstance;
1363
    }
1364
1365
    /**
1366
     * Declares an association between this object and a ChildUser object.

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

@@ 1238-1252 (lines=15) @@
1235
     * @return ChildInstance The associated ChildInstance object.
1236
     * @throws PropelException
1237
     */
1238
    public function getInstance(ConnectionInterface $con = null)
1239
    {
1240
        if ($this->aInstance === null && (($this->instance_name !== "" && $this->instance_name !== null))) {
1241
            $this->aInstance = ChildInstanceQuery::create()->findPk($this->instance_name, $con);
1242
            /* The following can be used additionally to
1243
                guarantee the related object contains a reference
1244
                to this object.  This level of coupling may, however, be
1245
                undesirable since it could result in an only partially populated collection
1246
                in the referenced object.
1247
                $this->aInstance->addUsers($this);
1248
             */
1249
        }
1250
1251
        return $this->aInstance;
1252
    }
1253
1254
1255
    /**

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

@@ 1677-1691 (lines=15) @@
1674
     * @return ChildInstance The associated ChildInstance object.
1675
     * @throws PropelException
1676
     */
1677
    public function getInstance(ConnectionInterface $con = null)
1678
    {
1679
        if ($this->aInstance === null && (($this->instance_name !== "" && $this->instance_name !== null))) {
1680
            $this->aInstance = ChildInstanceQuery::create()->findPk($this->instance_name, $con);
1681
            /* The following can be used additionally to
1682
                guarantee the related object contains a reference
1683
                to this object.  This level of coupling may, however, be
1684
                undesirable since it could result in an only partially populated collection
1685
                in the referenced object.
1686
                $this->aInstance->addSubscriptions($this);
1687
             */
1688
        }
1689
1690
        return $this->aInstance;
1691
    }
1692
1693
    /**
1694
     * Declares an association between this object and a ChildInput object.