public function save(Entity $entity): bool
    {
        $this->validateEntity($entity);

        return $this->saveCreateDelete('update', $entity);
    }
public function save(Entity $entity): bool
    {
        $this->validateEntity($entity);

        return $this->saveCreateDelete('update', $entity);
    }
public function save ( Entity $ entity ) : bool { $ this -> validateEntity ( $ entity ) ; return $ this -> saveCreateDelete ( 'update' , $ entity ) ; }
Save an existing model given criteria to find. If no criteria specified uses all model properties.

<code>
$this->save(Entity::class)
</code>

@param \Valkyrja\ORM\Entity $entity

@throws ExecuteException
@throws InvalidArgumentException
@throws InvalidEntityException

@return bool
Save an existing model given criteria to find . If no criteria specified uses all model properties .