Code Duplication    Length = 19-19 lines in 2 locations

application/modules/xbanners/models/Base/BannerImageI18n.php 1 location

@@ 1290-1308 (lines=19) @@
1287
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
1288
     * @throws PropelException
1289
     */
1290
    public function setBannerImage(ChildBannerImage $v = null)
1291
    {
1292
        if ($v === null) {
1293
            $this->setId(NULL);
1294
        } else {
1295
            $this->setId($v->getId());
1296
        }
1297
1298
        $this->aBannerImage = $v;
1299
1300
        // Add binding for other direction of this n:n relationship.
1301
        // If this object has already been added to the ChildBannerImage object, it will not be re-added.
1302
        if ($v !== null) {
1303
            $v->addBannerImageI18n($this);
1304
        }
1305
1306
1307
        return $this;
1308
    }
1309
1310
1311
    /**

application/modules/xbanners/models/Base/BannersI18n.php 1 location

@@ 1110-1128 (lines=19) @@
1107
     * @return $this|\xbanners\models\BannersI18n The current object (for fluent API support)
1108
     * @throws PropelException
1109
     */
1110
    public function setBanners(ChildBanners $v = null)
1111
    {
1112
        if ($v === null) {
1113
            $this->setId(NULL);
1114
        } else {
1115
            $this->setId($v->getId());
1116
        }
1117
1118
        $this->aBanners = $v;
1119
1120
        // Add binding for other direction of this n:n relationship.
1121
        // If this object has already been added to the ChildBanners object, it will not be re-added.
1122
        if ($v !== null) {
1123
            $v->addBannersI18n($this);
1124
        }
1125
1126
1127
        return $this;
1128
    }
1129
1130
1131
    /**