Scalr\Model\Entity\Farm::__clone PHP Méthode

__clone() public méthode

Reset farm id on clone
public __clone ( )
    public function __clone()
    {
        if (empty($this->_settings)) {
            $this->settings->load();
        }
        $unref = null;
        $this->id =& $unref;
        $this->_settings = clone $this->_settings;
        $this->_settings->setCriteria([['farmId' => &$this->id]]);
        $this->_settings->setDefaultProperties(['farmId' => &$this->id]);
    }