Code Duplication    Length = 17-17 lines in 3 locations

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

@@ 529-545 (lines=17) @@
526
     * @param int $v new value
527
     * @return $this|\xbanners\models\BannerImage The current object (for fluent API support)
528
     */
529
    public function setBannerId($v)
530
    {
531
        if ($v !== null) {
532
            $v = (int) $v;
533
        }
534
535
        if ($this->banner_id !== $v) {
536
            $this->banner_id = $v;
537
            $this->modifiedColumns[BannerImageTableMap::COL_BANNER_ID] = true;
538
        }
539
540
        if ($this->aBanners !== null && $this->aBanners->getId() !== $v) {
541
            $this->aBanners = null;
542
        }
543
544
        return $this;
545
    } // setBannerId()
546
547
    /**
548
     * Set the value of [target] column.

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

@@ 424-440 (lines=17) @@
421
     * @param int $v new value
422
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
423
     */
424
    public function setId($v)
425
    {
426
        if ($v !== null) {
427
            $v = (int) $v;
428
        }
429
430
        if ($this->id !== $v) {
431
            $this->id = $v;
432
            $this->modifiedColumns[BannerImageI18nTableMap::COL_ID] = true;
433
        }
434
435
        if ($this->aBannerImage !== null && $this->aBannerImage->getId() !== $v) {
436
            $this->aBannerImage = null;
437
        }
438
439
        return $this;
440
    } // setId()
441
442
    /**
443
     * Set the value of [locale] column.

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

@@ 373-389 (lines=17) @@
370
     * @param int $v new value
371
     * @return $this|\xbanners\models\BannersI18n The current object (for fluent API support)
372
     */
373
    public function setId($v)
374
    {
375
        if ($v !== null) {
376
            $v = (int) $v;
377
        }
378
379
        if ($this->id !== $v) {
380
            $this->id = $v;
381
            $this->modifiedColumns[BannersI18nTableMap::COL_ID] = true;
382
        }
383
384
        if ($this->aBanners !== null && $this->aBanners->getId() !== $v) {
385
            $this->aBanners = null;
386
        }
387
388
        return $this;
389
    } // setId()
390
391
    /**
392
     * Set the value of [locale] column.