public function setStored($stored = true)
    {
        $this->stored = (bool) $stored;
        $this->modified = $stored ? [] : $this->values;

        return $this;
    }
public function setStored($stored = true)
    {
        $this->stored = (bool) $stored;
        $this->modified = $stored ? [] : $this->values;

        return $this;
    }
public function setStored ( $ stored = true ) { $ this -> stored = ( bool ) $ stored ; $ this -> modified = $ stored ? [ ] : $ this -> values ; return $ this ; }
Set whether this entity is stored in the database or not.

@param bool $stored True if stored, false if not
Set whether this entity is stored in the database or not .