update() public method

Updates this object in database.
public update ( ) : boolean
return boolean Success
 public function testUpdateShouldReturnFalseIfCollectionIsNull()
 {
     $this->assertFalse($this->entity->update());
 }
 /**
  * {@inheritdoc}
  */
 public function update()
 {
     $this->hashAttributes();
     return parent::update();
 }