Code Duplication    Length = 19-19 lines in 3 locations

src/cli/Database/Base/Subscription.php 3 locations

@@ 1552-1570 (lines=19) @@
1549
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
1550
     * @throws PropelException
1551
     */
1552
    public function setInstance(ChildInstance $v = null)
1553
    {
1554
        if ($v === null) {
1555
            $this->setInstanceName(NULL);
1556
        } else {
1557
            $this->setInstanceName($v->getName());
1558
        }
1559
1560
        $this->aInstance = $v;
1561
1562
        // Add binding for other direction of this n:n relationship.
1563
        // If this object has already been added to the ChildInstance object, it will not be re-added.
1564
        if ($v !== null) {
1565
            $v->addSubscription($this);
1566
        }
1567
1568
1569
        return $this;
1570
    }
1571
1572
1573
    /**
@@ 1603-1621 (lines=19) @@
1600
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
1601
     * @throws PropelException
1602
     */
1603
    public function setUser(ChildUser $v = null)
1604
    {
1605
        if ($v === null) {
1606
            $this->setUserId(NULL);
1607
        } else {
1608
            $this->setUserId($v->getId());
1609
        }
1610
1611
        $this->aUser = $v;
1612
1613
        // Add binding for other direction of this n:n relationship.
1614
        // If this object has already been added to the ChildUser object, it will not be re-added.
1615
        if ($v !== null) {
1616
            $v->addSubscription($this);
1617
        }
1618
1619
1620
        return $this;
1621
    }
1622
1623
1624
    /**
@@ 1654-1672 (lines=19) @@
1651
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
1652
     * @throws PropelException
1653
     */
1654
    public function setChannel(ChildChannel $v = null)
1655
    {
1656
        if ($v === null) {
1657
            $this->setChannelId(NULL);
1658
        } else {
1659
            $this->setChannelId($v->getId());
1660
        }
1661
1662
        $this->aChannel = $v;
1663
1664
        // Add binding for other direction of this n:n relationship.
1665
        // If this object has already been added to the ChildChannel object, it will not be re-added.
1666
        if ($v !== null) {
1667
            $v->addSubscription($this);
1668
        }
1669
1670
1671
        return $this;
1672
    }
1673
1674
1675
    /**