public function setNewValue($attribute, $value)
    {
        $this->assertValidAttribute($attribute);

        $this->documentChangeSet[$attribute][1] = $value;
        $this->getDocumentManager()->getUnitOfWork()->setDocumentChangeSet($this->getDocument(), $this->documentChangeSet);
    }
public function setNewValue($attribute, $value)
    {
        $this->assertValidAttribute($attribute);

        $this->documentChangeSet[$attribute][1] = $value;
        $this->getDocumentManager()->getUnitOfWork()->setDocumentChangeSet($this->getDocument(), $this->documentChangeSet);
    }
public function setNewValue ( $ attribute , $ value ) { $ this -> assertValidAttribute ( $ attribute ) ; $ this -> documentChangeSet [ $ attribute ] [ 1 ] = $ value ; $ this -> getDocumentManager ( ) -> getUnitOfWork ( ) -> setDocumentChangeSet ( $ this -> getDocument ( ) , $ this -> documentChangeSet ) ; }
Sets the new value of this attribute.

@param string $attribute
@param mixed  $value
Sets the new value of this attribute .