Code Duplication    Length = 11-12 lines in 2 locations

packages/core/src/Models/Task/Base/Task.php 1 location

@@ 1072-1082 (lines=11) @@
1069
     * outgoing references as well as back-references (from other objects to this one. Results probably in a database
1070
     * change of those foreign objects when you call `save` there).
1071
     */
1072
    public function clear()
1073
    {
1074
        $this->id = null;
1075
        $this->created_at = null;
1076
        $this->updated_at = null;
1077
        $this->alreadyInSave = false;
1078
        $this->clearAllReferences();
1079
        $this->resetModified();
1080
        $this->setNew(true);
1081
        $this->setDeleted(false);
1082
    }
1083
1084
    /**
1085
     * Resets all references and back-references to other model objects or collections of model objects.

packages/selfprice/src/Models/Selfprice/Base/Selfprice.php 1 location

@@ 1112-1123 (lines=12) @@
1109
     * outgoing references as well as back-references (from other objects to this one. Results probably in a database
1110
     * change of those foreign objects when you call `save` there).
1111
     */
1112
    public function clear()
1113
    {
1114
        $this->id = null;
1115
        $this->name = null;
1116
        $this->datecreate = null;
1117
        $this->desc = null;
1118
        $this->alreadyInSave = false;
1119
        $this->clearAllReferences();
1120
        $this->resetModified();
1121
        $this->setNew(true);
1122
        $this->setDeleted(false);
1123
    }
1124
1125
    /**
1126
     * Resets all references and back-references to other model objects or collections of model objects.